Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 4.0
Description

Excerpt

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.)

Signature
C#C#
Wiki Markup
{description}
{excerpt}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|DocumentProperties.SetCustomProperty(String, Object)].\){excerpt}
{signature:C#}
 public System.Object GetCustomProperty(System.String key)
Signature
{signature}{signature:vb.net
vb.net
}
Public Function GetCustomProperty(ByVal key As String) As Object
Parameters

...

The key or name of the custom property.

Returns

The value of the custom property.

{signature}
{parameters}
{param:key}The key or name of the custom property.{param}
{returns}The value of the custom property.{returns}
{example}{code:csharp|title=C#}
Object reviewedBy = docProps.GetCustomProperty("Reviewed by");
{code}
{code:vb.net
|title=vb.net
}
Dim reviewedBy As Object = docProps.GetCustomProperty("Reviewed by"){code}

{example}
Example
Code Block
csharpcsharp
titleC#
Code Block
vb.nettitle