Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Description

Excerpt

Sets or returns the license key used for this instance of WordApplication. This property is mainly used for debugging purposes. For managing your license keys, please use the License Key Manager that is installed with OfficeWriter.

Signature
C#
C#
<table class="diff-macro"><thead><tr><th class="diff-macro-title">unmigrated-wiki-markup</th></tr></thead><tbody><tr><td class="diff-macro-body"><pre>
 public System.String LicenseKey{ get; set; }
</pre></td></tr></tbody></table>
Signature
vb.net
vb.net
Public <p>Public Property LicenseKey() As String</p>String
Example
Code Block
csharp
csharp
titleC#
            //--- Return license key
          string key = oWordApplication.LicenseKey;

          //--- Set license key
          oWordApplication.LicenseKey = "XXXXXX-XXXX-XXXX-XXXXXX";
        
Code Block
vb.net
vb.net
titlevb.net
            '--- Return license key
          Dim key As String = oWordApplication.LicenseKey

          '--- Set license key
          oWordApplication.LicenseKey = "XXXXXX-XXXX-XXXX-XXXXXX"