DataGateCredentialExtensions class
Provides extension methods for the IDataGateCredential interface.
Namespace: ASNA.DataGate.Providers Assembly: ASNA.QSys.DataGate.Client.dll
Inheritance: Object
Methods
Signature | Description |
---|---|
IsStarDomainCredential(IDataGateCredential) | Determines whether the specified IDataGateCredential is a StarDomain credential. |
ThrowIfNotUserPassword(IDataGateCredential, UserPasswordCredential&) | Throws an exception if the specified IDataGateCredential is not a UserPassword credential. |
bool IsStarDomainCredential(IDataGateCredential dgc)
Determines whether the specified IDataGateCredential is a StarDomain credential.
bool IsStarDomainCredential(IDataGateCredential dgc)
Parameters
Type | Parameter name | Description |
---|---|---|
IDataGateCredential | dgc | The IDataGateCredential to check. |
Returns
Type | Description |
---|---|
Boolean | True if the specified IDataGateCredential is a StarDomain credential; otherwise, false. |
void ThrowIfNotUserPassword(IDataGateCredential dgc, UserPasswordCredential& upc)
Throws an exception if the specified IDataGateCredential is not a UserPassword credential.
void ThrowIfNotUserPassword(IDataGateCredential dgc, UserPasswordCredential& upc)
Parameters
Type | Parameter name | Description |
---|---|---|
IDataGateCredential | dgc | The IDataGateCredential to check. |
UserPasswordCredential& | upc | The UserPasswordCredential to check. |