Page tree

Versions Compared

Key

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

Excerpt

Sets the value of the specified property.

Signature
C#C#
Wiki Markup
{description}
{excerpt}Sets the value of the specified property.{excerpt}
{signature:C#}
 public void SetProperty(System.String propertyName, System.Object propertyValue)
Signature
{signature}{signature:vb.net
vb.net
}
Public Sub SetProperty(ByVal propertyName As String, ByVal propertyValue As Object)
Parameters

...

A String representing the name of the property to set.

...

An Object that represents the value of the property specified.

Remarks

MS Word equivalent: File menu > Properties > Custom tab > Properties:

{signature}
{parameters}
{param:propertyName}A {{String}} representing the name of the property to set.{param}
{param:propertyValue}An {{Object}} that represents the value of the property specified.{param}
{remarks}MS Word equivalent: File menu > Properties > Custom tab > Properties:

{remarks}
{example}{code:csharp|title=C#}

          //--- Set "Priority" Property
          docProps.SetProperty("Priority", "high");
        
{code}
{code:vb.net
|title=vb.net
}

          '--- Set "Priority" Property
          docProps.SetProperty("Priority", "high")
        {code}

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