Description
Returns an Object that represents the value of the property specified.
C#
public System.Object GetProperty(System.String propertyName)
vb.net
Public Function GetProperty(ByVal propertyName As String) As Object
Parameters
propertyName
AString representing the name of the property to retrieve.
Returns
AnObject that represents the value of the property specified.
Remarks
MS Word equivalent: File menu > Properties > Custom tab > Properties:Examples
C#
//--- Return "Priority" Property
string priority = docProps.GetProperty("Priority");
vb.net
'--- Return "Priority" Property
Dim priority As String = docProps.GetProperty("Priority")
