Freigeben über


DataConnectionProperties.ResolveProperty Method

Looks up the specified property in the list of synonyms and optionally makes this property the primary name for the synonyms collection, if it is not already so.

Namespace:  Microsoft.VisualStudio.Data.Framework
Assembly:  Microsoft.VisualStudio.Data.Framework (in Microsoft.VisualStudio.Data.Framework.dll)

Syntax

'Declaration
Protected Function ResolveProperty ( _
    name As String, _
    setAsBaseName As Boolean _
) As PropertyDescriptor
protected PropertyDescriptor ResolveProperty(
    string name,
    bool setAsBaseName
)
protected:
PropertyDescriptor^ ResolveProperty(
    String^ name, 
    bool setAsBaseName
)
member ResolveProperty : 
        name:string * 
        setAsBaseName:bool -> PropertyDescriptor 
protected function ResolveProperty(
    name : String, 
    setAsBaseName : boolean
) : PropertyDescriptor

Parameters

  • name
    Type: System.String
    The property name of the property to resolve.
  • setAsBaseName
    Type: System.Boolean
    A Boolean value indicating whether to make this property the primary name used as a key into the synonyms collection.

Return Value

Type: System.ComponentModel.PropertyDescriptor
The specified property as a PropertyDescriptor object, if it is found in the synonyms list; otherwise, nulla null reference (Nothing in Visual Basic).

Exceptions

Exception Condition
ArgumentNullException

The name parameter is null.

Examples

Making a property the primary property name in the synonyms list affects what property name is displayed for this property on the property grid in the connection advanced dialog box.

.NET Framework Security

See Also

Reference

DataConnectionProperties Class

Microsoft.VisualStudio.Data.Framework Namespace