_PropertyAccessor.GetProperty(String) _PropertyAccessor.GetProperty(String) _PropertyAccessor.GetProperty(String) Method

Definition

Returns an Object that represents the value of the property specified by SchemaName.

public:
 System::Object ^ GetProperty(System::String ^ SchemaName);
public object GetProperty (string SchemaName);
Public Function GetProperty (SchemaName As String) As Object

Parameters

SchemaName
String String String

The name of the property whose value is to be returned. The property is referenced by namespace. For more information, see Referencing Properties by Namespace

Returns

An Object value that represents the value of the requested property as specified by SchemaName.

Remarks

The type of the return value will be the same as the type of the underlying property. Certain raw property types such as PT_OBJECT are unsupported and will raise an error. If you require conversion of the raw property type, for example, from PT_BINARY to a string, or from PT_SYSTIME to a local time, use the helper methods BinaryToString(Object) and UTCToLocalTime(DateTime).

For more information on getting properties using the PropertyAccessor object, see Best Practices for Getting and Setting Properties

Applies to