Sets or clears the synonyms for the specified property.
Namespace: Microsoft.VisualStudio.Data.Framework
Assembly: Microsoft.VisualStudio.Data.Framework (in Microsoft.VisualStudio.Data.Framework.dll)
Syntax
'宣言
Protected Sub SetPropertySynonyms ( _
baseName As String, _
synonyms As String() _
)
'使用
Dim baseName As String
Dim synonyms As String()
Me.SetPropertySynonyms(baseName, _
synonyms)
protected void SetPropertySynonyms(
string baseName,
string[] synonyms
)
protected:
void SetPropertySynonyms(
String^ baseName,
array<String^>^ synonyms
)
protected function SetPropertySynonyms(
baseName : String,
synonyms : String[]
)
Parameters
baseName
Type: System.StringThe primary property name used as a key into the synonyms collection.
synonyms
Type: []Array containing the synonyms corresponding to the primary property name, or a null reference (Nothing in Visual Basic) to clear the synonyms for the given property.
Exceptions
| Exception | Condition |
|---|---|
| ArgumentNullException | The baseName parameter is null. |
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