Retrieves an array list of synonyms for a specified property.
Namespace: Microsoft.VisualStudio.Data
Assembly: Microsoft.VisualStudio.Data (in Microsoft.VisualStudio.Data.dll)
Syntax
'宣言
Public Overridable Function GetSynonyms ( _
propertyName As String _
) As String()
'使用
Dim instance As DataConnectionProperties
Dim propertyName As String
Dim returnValue As String()
returnValue = instance.GetSynonyms(propertyName)
public virtual string[] GetSynonyms(
string propertyName
)
public:
virtual array<String^>^ GetSynonyms(
String^ propertyName
)
public function GetSynonyms(
propertyName : String
) : String[]
Parameters
propertyName
Type: System.StringThe name of a property for which to retrieve the list of synonyms.
Return Value
Type: []
Returns a list of synonyms for a specified property.
Exceptions
| Exception | Condition |
|---|---|
| ArgumentNullException | The propertyName parameter is null. |
Remarks
A synonym is a property name that behaves like an alias, allowing a given property to be called by two or more names. For example, there might be two property names, "Server" and "Data Source", both which are treated as the same property by the data provider.
The array of values returned includes all synonyms for the specified property name, not including the specified property name.
Permissions
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
DataConnectionProperties Class