Export (0) Print
Expand All

IPerPropertyBrowsing::MapPropertyToPage method

Retrieves the CLSID of the property page associated with the specified property.

Syntax


HRESULT MapPropertyToPage(
  [in]   DISPID dispID,
  [out]  CLSID *pClsid
);

Parameters

dispID [in]

The dispatch identifier of the property.

pClsid [out]

A pointer to the CLSID identifying the property page associated with the property specified by dispID. If this method fails, *pClsid is set to CLSID_NULL.

Return value

This method can return the standard return values E_INVALIDARG and E_UNEXPECTED, as well as the following values.

Return codeDescription
S_OK

The method completed succesfully.

E_NOTIMPL

The object does not support property pages at all or does not support mapping properties to the page CLSID. In other words, this feature of specific property browsing is not supported.

E_POINTER

The address in pClsid is not valid. For example, it may be NULL.

 

Remarks

The CLSID returned from this method can be passed to OleCreatePropertyFrameIndirect to specify the initial page to display in the property sheet.

Requirements

Minimum supported client

Windows 2000 Professional [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Header

OCIdl.h

IDL

OCIdl.idl

IID

IID_IPerPropertyBrowsing is defined as 376BD3AA-3845-101B-84ED-08002B2EC713

See also

IPerPropertyBrowsing

 

 

Community Additions

ADD
Show:
© 2014 Microsoft