DataConnectionProperties.GetProperty Method

Retrieves the descriptor of a property with the specified property name.

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

Syntax

'宣言
Protected Function GetProperty ( _
    name As String _
) As PropertyDescriptor
'使用
Dim name As String
Dim returnValue As PropertyDescriptor

returnValue = Me.GetProperty(name)
protected PropertyDescriptor GetProperty(
    string name
)
protected:
PropertyDescriptor^ GetProperty(
    String^ name
)
protected function GetProperty(
    name : String
) : PropertyDescriptor

Parameters

  • name
    Type: System.String

    The name of a property for which to retrieve the descriptor.

Return Value

Type: System.ComponentModel.PropertyDescriptor

Returns a descriptor of a property with the specified property name, or returns a null reference (Nothing in Visual Basic) if no property with the specified name is found.

Exceptions

Exception Condition
ArgumentNullException

The name parameter is null.

Permissions

See Also

Reference

DataConnectionProperties Class

DataConnectionProperties Members

Microsoft.VisualStudio.Data Namespace