Freigeben über


Name Property

Name Property

Gets the name of the object.

Declaration

[C++]

[C++]

[propget] HRESULT get_Name (
    [out, retval] BSTR* name
);

      

[Microsoft® Visual Basic® 6.0]

[Visual Basic]

Public Property Get Name() As String

      

Property Value

BSTR The human-readable name of the object.

This property is read-only.

For more information about the BSTR data type, see Using the Automation Library.

Return Value

HRESULT value Description
S_OK Success.
E_POINTER The parameter is an invalid pointer.
E_OUTOFMEMORY Cannot allocate memory to complete the operation.
E_FAIL An unspecified error occurred.
E_INK_EXCEPTION An exception occurred while processing.

Example

[Visual Basic 6.0]

This Visual Basic 6.0 example loads the names of all available IInkRecognizer objects into a list box, theListBox.


'...
Dim theRecognizers As New InkRecognizers
Dim theRecognizer As IInkRecognizer
For Each theRecognizer In theRecognizers
    theListBox.AddItem (theRecognizer.name)
Next
'...

      

Applies To