Export (0) Print
Expand All

IWbemClassObject::GetMethodQualifierSet method

The IWbemClassObject::GetMethodQualifierSet is used to retrieve the qualifier set for a particular method.

This call is supported only if the current object is a CIM class definition. Method manipulation is not available from IWbemClassObject pointers, which point to CIM instances.

Syntax


HRESULT GetMethodQualifierSet(
  [in]  LPCWSTR           wszMethod,
  [out] IWbemQualifierSet **ppQualSet
);

Parameters

wszMethod [in]

Must point to a valid LPCWSTR containing the method name.

ppQualSet [out]

Receives the interface pointer that allows access to the qualifiers for the method. The returned object has a positive reference count upon return from the call. The caller must call IWbemQualifierSet::Release when the object is no longer needed. This parameter cannot be NULL. On error, a new object is not returned, and the pointer is set to point to NULL.

Return value

This method returns an HRESULT indicating the status of the method call. The following table lists the value contained within an HRESULT. For general HRESULT values, see System Error Codes.

Return codeDescription
WBEM_E_NOT_FOUND

The method did not exist.

WBEM_E_INVALID_PARAMETER

A parameter is NULL.

WBEM_S_NO_ERROR

The call succeeded.

 

Remarks

Because each method may have its own qualifiers, use this call to retrieve the IWbemQualifierSet pointer, which allows the caller to add, edit, or delete such qualifiers.

Requirements

Minimum supported client

Windows Vista

Minimum supported server

Windows Server 2003

Header

Wbemcli.h (include Wbemidl.h)

Library

Wbemuuid.lib

DLL

CIMWin32.dll;
Esscli.dll;
Evntrprv.dll;
Fastprox.dll;
Framedyn.dll;
Krnlprov.dll;
Ncprov.dll;
Wbemcore.dll;
Wbemess.dll;
Wmipiprt.dll

 

 

Show:
© 2015 Microsoft