Class TranslationProviderCredentialStore
TranslationProviderCredentialStore class represents a standard implementation of a translation provider credential store.
Inheritance
System.Object
TranslationProviderCredentialStore
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Sdl.LanguagePlatform.TranslationMemoryApi
Assembly: Sdl.LanguagePlatform.TranslationMemoryApi.dll
Syntax
public class TranslationProviderCredentialStore : ITranslationProviderCredentialStore
Constructors
TranslationProviderCredentialStore()
Declaration
public TranslationProviderCredentialStore()
Methods
AddCredential(Uri, TranslationProviderCredential)
Adds the given credential associated with the given uri.
Declaration
public void AddCredential(Uri uri, TranslationProviderCredential credential)
Parameters
Type | Name | Description |
---|---|---|
System.Uri | uri | uri |
TranslationProviderCredential | credential | credential |
Clear()
Clears all the credentials.
Declaration
public void Clear()
GetCredential(Uri)
Gets the credential with the given uri.
Declaration
public TranslationProviderCredential GetCredential(Uri uri)
Parameters
Type | Name | Description |
---|---|---|
System.Uri | uri | uri |
Returns
Type | Description |
---|---|
TranslationProviderCredential | credential |
Remarks
If the credential does not exist then it returns null.
GetSchema()
Gets the xml schema.
Declaration
public XmlSchema GetSchema()
Returns
Type | Description |
---|---|
System.Xml.Schema.XmlSchema | xml schema |
ReadXml(XmlReader)
Reads the xml from the given reader.
Declaration
public void ReadXml(XmlReader reader)
Parameters
Type | Name | Description |
---|---|---|
System.Xml.XmlReader | reader | reader |
RemoveCredential(Uri)
Removes the credential associated with the given uri.
Declaration
public void RemoveCredential(Uri uri)
Parameters
Type | Name | Description |
---|---|---|
System.Uri | uri | uri |
WriteXml(XmlWriter)
Writes the xml to the given writer.
Declaration
public void WriteXml(XmlWriter writer)
Parameters
Type | Name | Description |
---|---|---|
System.Xml.XmlWriter | writer | writer |
Events
CredentialsChanged
CredentialsChanged event is fired whenever the credentials are added to or removed from the store.
Declaration
public event EventHandler CredentialsChanged
Event Type
Type | Description |
---|---|
System.EventHandler |
Implements
System.Xml.Serialization.IXmlSerializable