Skip to end of metadata
Go to start of metadata

Description

Returns the value of the custom property for the specified key. The return value can be of the following types, depending on the property: String, Double, Integer, Boolean or DateTime. (To create a custom property, use DocumentProperties.SetCustomProperty.)

C#
 public System.Object GetCustomProperty(System.String key)
vb.net
Public Function GetCustomProperty(ByVal key As String) As Object

Parameters

key
The key or name of the custom property.

Returns

The value of the custom property.

Examples

C#
Object reviewedBy = docProps.GetCustomProperty("Reviewed by");
vb.net
Dim reviewedBy As Object = docProps.GetCustomProperty("Reviewed by")
  • No labels