ISettingsItem::GetRestriction method

Gets the information for a given restriction.

Syntax


HRESULT GetRestriction(
  [in]   WcmRestrictionFacets RestrictionFacet,
  [out]  VARIANT *FacetData
);

Parameters

RestrictionFacet [in]

A WcmRestrictionFacets value that indicates the type of restriction facet.

FacetData [out]

A pointer to the facet data.

Return value

This method can return one of these values.

Return codeDescription
S_OK

Indicates success.

HRESULT_FROM_WIN32 (ERROR_INVALID_OPERATION)

Indicates that the method was called on a non-scalar setting.

E_INVALIDARG

Indicates that the requested restriction facet is not defined for this item.

 

Requirements

Minimum supported client

Windows Vista [desktop apps only]

Minimum supported server

Windows Server 2008 [desktop apps only]

Header

WcmConfig.h

IDL

WcmConfig.idl

DLL

SMIEngine.dll

See also

ISettingsItem

 

 

Community Additions

ADD
Show:
© 2015 Microsoft