DatabaseLabel.GetLabel Method
Definition
Namespace: ASNA.DataGate.Client.DatabaseLabel
Assembly: ASNA.QSys.DataGate.Client.dll
Retrieves a specific label from a given server.
ILabel GetLabel(SourceProfile sp, string lblName)
Retrieves a specific label from a given server.
Remarks
This method uses the method to retrieve all labels from the server specified in the source profile.It then uses LINQ to filter the labels based on the provided name, using a case-insensitive comparison.If a label with the provided name is found, it is returned; otherwise, the method returns null.
ILabel GetLabel(SourceProfile sp, string lblName)
Parameters
| Type | Parameter name | Description |
|---|---|---|
| SourceProfile | sp | The source profile containing server and user credentials. |
| String | lblName | The name of the label to retrieve. |
Returns
| Type | Description |
|---|---|
| ILabel | The label matching the provided name, or null if no match is found. |