DataConnectionProperties.SetPropertySynonyms Method

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.String

    The 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

See Also

Reference

DataConnectionProperties Class

DataConnectionProperties Members

Microsoft.VisualStudio.Data.Framework Namespace