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 a specified 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}Returns the value of a specified property. The value can be one of the following types, depending on the property: String, Double, Integer, Boolean or DateTime.{excerpt}
{signature:C#}
 public System.Object this[System.String propertyName] { get; set; }
Signature
{signature}{signature:vb.net
vb.net
}
Public Default Property Item(ByVal propertyName As String) As Object
Parameters

...

The built-in property.

Returns

The value of the built-in property.

{signature}
{parameters}
{param:property}The built\-in property.{param}
{returns}The value of the built\-in property.{returns}
{example}{code:csharp|title=C#}

          //--- Get Property
          Object application = docProps["Application"];

          //--- Set Property
          docProps["Application"] = "xlw";
        
{code}
{code:vb.net
|title=vb.net
}

          '--- Get Property
          Dim application As Object = docProps("Application")

          '--- Set Property
          docProps("Application") = "xlw"
        {code}

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