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

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

Retrieves a proxy to a well-known remote server object.

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

public virtual T GetService<T>(
	string configuredName
)

Parameters

configuredName
Type: SystemString
the configured name of the server object to get.

Type Parameters

T
The type of the well-known object to which you want to connect. This type must be an interface.

Return Value

Type: T
A remoting proxy to an implementation of the type represented by the type parameter

Implements

IServiceFactoryGetServiceT(String)
Exceptions

ExceptionCondition
ArgumentNullExceptionconfiguredName was null.
RemotingExceptionT is not marshaled by reference and is not an interface
MemberAccessExceptionTa member was invoked with a late-binding mechanism.
Remarks

Call the proxy to send messages to the remote object. No messages are sent over the network until a method is called on the proxy.
See Also

Reference