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