IServiceFactoryTryGetServiceT Method Content Studio 5.7 SDK
Content Studio Web Content Management System

[This is preliminary documentation and is subject to change.]

When implemented in derived classes, retrieves a proxy to a well-known remote server object. A return value indicates whether the service could be created.

Namespace: ContentStudio.Api.Extensions
Assembly: ContentStudio.Api.Extensions (in ContentStudio.Api.Extensions.dll) Version: (

bool TryGetService<T>(
	string configuredName,
	out T result


Type: SystemString
the configured name of the server object to get.
Type: T
When this metods returns contains a proxy to a well-known remote server object when successful, or null when failed. The method fails when the T is not an interface or T is not marshalled by reference.

Type Parameters

the type of service object to return

Return Value

Type: Boolean
true if the operation was successful; otherwise, false A remoting proxy to an implementation of the type represented by the type parameter
See Also