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