Page tree

Versions Compared

Key

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

Excerpt

Use SetCustomProperty to create a custom document property. Pass the method the name and value of the property. The value can be one of the following types, depending on the property: String, Double, Integer, Boolean, or DateTime.

Signature
C#C#
Wiki Markup
{description}
{excerpt}Use [SetCustomProperty|DocumentProperties.SetCustomProperty(String, Object)] to create a custom document property.  Pass the method the name and value of the property.  The value can be one of the following types, depending on the property: String, Double, Integer, Boolean, or DateTime.{excerpt}
{signature:C#}
 public void SetCustomProperty(System.String key, System.Object value)
Signature
{signature}{signature:vb.net
vb.net
}
Public Sub SetCustomProperty(ByVal key As String, ByVal value As Object)
Parameters
{signature}
{parameters}
{param:key}The key or name of the custom property.{param}
{param:value}The value of the custom property.{param}
{example}{code:csharp|title=C#}
docProps.SetCustomProperty("Reviewed by", "J. Smith");
{code}
{code:vbnet|title=vb.net
}
docProps.SetCustomProperty("Reviewed by", "J. Smith"){code}

{example}
Param
keykey

The key or name of the custom property.

Param
valuevalue

The value of the custom property.

Example
Code Block
csharpcsharp
titleC#
Code Block
vbnetvbnettitle