Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

IInspectable::GetRuntimeClassName method

Gets the fully qualified name of the current Windows Runtime object.

Syntax


HRESULT GetRuntimeClassName(
  [out] HSTRING *className
);

Parameters

className [out]

Type: HSTRING*

The fully qualified name of the current Windows Runtime object.

Return value

Type: HRESULT

This function can return the following values.

Return codeDescription
S_OK

The className string was created successfully.

E_OUTOFMEMORY

Failed to allocate className string.

E_ILLEGAL_METHOD_CALL

className refers to a class factory or a static interface.

 

Remarks

Use the GetRuntimeClassName method to retrieve the namespace-qualified name of a Windows Runtime object.

The caller is responsible for freeing the className string by using the WindowsDeleteString function.

The following table shows example class name strings that cold be returned by the GetRuntimeClassName method.

Example Class NameDescription
Fabrikam.Kitchen.IToasterAn interface in the Fabrikam.Kitchen namespace.
Fabrikam.Kitchen.ChefAn class in the Fabrikam.Kitchen namespace.
Windows.Foundation.Collections.IVector`1<TailspinToys.IStore>A vector of TailspinToys.IStore interfaces.
Windows.Foundation.Collections.IVector`1<Windows.Foundation.Collections.IMap’2<String, TailspinToys.IStore>>A vector of maps of strings to TailspinToys.IStore interfaces.

 

The GetRuntimeClassName method provides the most specific type information that the server object guarantees that it implements. The type name may be a runtime class name, interface group name, interface name, or parameterized interface name.

The GetRuntimeClassName method returns E_ILLEGAL_METHOD_CALL if the class name refers to a class factory or a static interface.

Requirements

Minimum supported client

Windows 8 [desktop apps | Windows Store apps]

Minimum supported server

Windows Server 2012 [desktop apps | Windows Store apps]

Header

Inspectable.h

IDL

Inspectable.idl

See also

IInputPaneInterop
IInspectable

 

 

Show: