Share via


Write Method [Office 2003 SDK Documentation]

The Write method writes a property key into the property bag for a smart document control.

Applies to

ISmartDocProperties Interface

Syntax

[Visual Basic 6.0]

Private Sub ISmartDocProperties_Write(ByVal Key As String, ByVal Value As String)

[Visual Basic .NET]

Public Sub Write(ByVal Key As String, ByVal Value As String) Implements SmartTagLib.ISmartDocProperties.Write

[C#]

public void ISmartDocProperties.Write(string Key, string Value)

[Visual C++]

STDMETHOD(Write)(BSTR Key, BSTR Value)

[Visual C++ .NET]

STDMETHOD(Write)(BSTR Key, BSTR Value)

Parameters

Key   A string that represents the name of a property. If the specified property key name does not exist, a new property is created. For a list of property keys for smart document controls, see the ISmartDocProperties interface.

Value   A string that represents the setting for the specified property key. If the value is a null value or an empty string, the existing property key setting is deleted.