SourceProfile class | QSYS API Reference Guide
Estimated reading time: 3 minutes
The SourceProfile class represents a profile in the source system.
Namespace: ASNA.DataGate.Providers Assembly: ASNA.QSys.DataGate.Client.dll
Inheritance: Object
Remarks
This class is used to map the profile data from the source system to the target system.
Constructors
Name | Description |
---|---|
SourceProfile() | Initializes a new instance of the class with default values. |
SourceProfile(SourceProfile) | Initializes a new instance of the class with the specified source profile. |
For detailed constructor documentation, see SourceProfile Constructors.
Properties
Type | Name | Description |
---|---|---|
ITransformProperties | AltDecoderProps | Gets or sets the alternative decoder properties for the source profile. |
ITransformProperties | AltEncoderProps | Gets or sets the alternative encoder properties for the source profile. |
String | AltEncodingName | Alternative character encoding string identifiers must becase-insensitive in the invariant culture. |
IDataGateCredential | Credential | Gets or sets the credentials for the source profile. |
String | DGPLATFORM | Constant for the DataLink platform attribute. |
IEnumerable<String> | InitialLibraryList | Get or Set initial library list |
Boolean | IsSqlClientPlatform | Gets a value indicating whether the platform attribute of the source profile is SQL Client-based. |
Boolean | IsSqlPlatform | Gets a value indicating whether the platform attribute of the source profile is SQL-based. |
String | Label | Get or Set label name |
String | PlatformAttribute | Gets or sets the platform attribute for the source profile. |
Byte | PoolingTimeout | Gets or sets the pooling timeout for the source profile. |
Int32 | Port | Gets or sets the port for the source profile. |
String | Server | Get or Set server name |
String | ServicePrincipalName | Gets or sets the Service Principal Name (SPN) for the source profile. |
String | SQLCLIENTPLATFORM | Constant for the SQL Client platform attribute. |
String | SQLOLEDBPLATFORM | Constant for the SQL OLE DB platform attribute. |
String | SslCertificateName | Gets or sets the SSL certificate name for the source profile. |
SslOptions | SslOptions | Gets or sets the SSL options for the source profile. |
String | Text | Gets or sets the text associated with the source profile. |
Methods
Signature | Description |
---|---|
Clone() | Creates a new object that is a copy of the current instance. |
Equals(SourceProfile) | Determines whether the current instance of is equal to the specified instance. |
Equals(Object) | Determines whether the current instance of is equal to the specified instance. |
Equals(Object, Boolean) | Determines whether the current instance of is equal to the specified object. |
GetHashCode() | Serves as the default hash function. |
IsKnownPlatformAttribute(String) | Determines whether the provided platform attribute is a known platform attribute. |
op_Equality(SourceProfile, SourceProfile) | Determines whether two instances of are equal. |
op_Inequality(SourceProfile, SourceProfile) | Determines whether two instances of are not equal. |
ToString() | Returns a string that represents the current SourceProfile. |
Examples
Example: Using a Constructor
SourceProfile newDbProfile = new SourceProfile();
newDbProfile.Server = "valid ip address";
newDbProfile.User = "User1";
newDbProfile.Password = "password"; /* Note- not very secure. */
newDbProfile.Port = 5047;
newDbProfile.PoolingTimeout = 0;
newDbProfile.PlatformAttribute = "*DATALINK";
newDbProfile.Text = "New database at valid ip address, on port 5047.";
Example : Using a Constructor with an existing Source Profile.
/* This creates a brand new database name using the
* old source profile.*/
SourceProfile newDbProfile2 = new SourceProfile(sp);