ConnectorFactory.GetServerConnector<T> Method (String, Object, NetworkCredential)
Returns a ProviderConnector<T> object with the specified callback object and credentials for the provider with the specified identifier.
Namespace: Microsoft.WindowsServerSolutions.Common.ProviderFramework
Assembly: ProviderFramework (in ProviderFramework.dll)
Syntax
public static ProviderConnector<T> GetServerConnector<T>(
string identifier,
object callback,
NetworkCredential credential
)
where T : class
public:
generic<typename T>
where T : ref class
static ProviderConnector<T>^ GetServerConnector(
String^ identifier,
Object^ callback,
NetworkCredential^ credential
)
Public Shared Function GetServerConnector(Of T As Class) (
identifier As String,
callback As Object,
credential As NetworkCredential
) As ProviderConnector(Of T)
Parameters
identifier
Type: System.StringIdentifier of the provider that is used.
callback
Type: System.ObjectThe callback object that is associated with the ProviderConnector<T> object.
credential
Type: System.Net.NetworkCredentialThe NetworkCredential object that contains the credential information that is necessary for accessing the ProviderConnector<T> object.
Return Value
Type: Microsoft.WindowsServerSolutions.Common.ProviderFramework.ProviderConnector<T>
An instance of ProviderConnector<T> that has not started a connection.
Type Parameters
- T
Represents the contract type.
See Also
GetServerConnector Overload
ConnectorFactory Class
Microsoft.WindowsServerSolutions.Common.ProviderFramework Namespace
Return to top