Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Retrieves the Type value indicating the type of a specified property, thus enabling appropriate conversion of a retrieved value to the correct type.
Namespace: Microsoft.VisualStudio.Data.Framework
Assembly: Microsoft.VisualStudio.Data.Framework (in Microsoft.VisualStudio.Data.Framework.dll)
Syntax
'Declaration
Protected Overridable Function GetType ( _
propertyName As String _
) As Type
protected virtual Type GetType(
string propertyName
)
protected:
virtual Type^ GetType(
String^ propertyName
)
abstract GetType :
propertyName:string -> Type
override GetType :
propertyName:string -> Type
protected function GetType(
propertyName : String
) : Type
Parameters
- propertyName
Type: System.String
The name of the property for which to get the type.
Return Value
Type: System.Type
A Type value indicating the type of a specified property.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | The propertyName parameter is nulla null reference (Nothing in Visual Basic). |
Remarks
If the property is not found, this method returns typeof(System.String) as the default type.
.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.