Property Property

The Property property contains the values of a specified property.

Property Property( _varParam As String _) As String[C++]
Get method:
HRESULT get_Property(BSTRvarParam, 
    VARIANT* varProperty);
Put method:
HRESULT put_Property(BSTRvarParam,
    VARIANTvarProperty);

[Visual Basic]

Parameters
  • varParam
    String that specifies the Uniform Resource Identifier (URI) of the property.
Return Values

This property returns a Variant that contains the value of the property.

Error Values

If an error is raised, Err.Number is set to one of the values documented on the Error Messages page.

[C++]

Parameters

Get method:

  • varParam
    [in] BSTR that specifies the Uniform Resource Identifier (URI) of the property.
  • varProperty
    [out, retval] Pointer to a VARIANT that contains the value of the property.

Put method:

  • varParam
    [in] BSTR that specifies the URI of the property desired.
  • varProperty
    [in] VARIANT that contains the value of the property.
Return Values

For a list of error messages returned by SharePoint Portal Server, see Error Messages.

Remarks

The Property property supports arbitrary properties. It is useful in functions that examine multiple properties of an object. The value and type of this property are those of the property specified in the parameter.

The following two statements return the value of the same property:

oDoc.Property("DAV:href") 
oDoc.Fields("DAV:href").Value.
Example

To see this property in a fuller context, see Document Management Object Model Sample.