Partager via


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

'Declaration
Protected Function GetProperty ( _
    name As String _
) As PropertyDescriptor
protected PropertyDescriptor GetProperty(
    string name
)
protected:
PropertyDescriptor^ GetProperty(
    String^ name
)
member GetProperty : 
        name:string -> PropertyDescriptor
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 nulla null reference (Nothing in Visual Basic) if no property with the specified name is found.

Exceptions

Exception Condition
ArgumentNullException

The name parameter is null.

.NET Framework Security

See Also

Reference

DataConnectionProperties Class

Microsoft.VisualStudio.Data Namespace