Export (0) Print
Expand All

IOCSPPropertyCollection::CreateProperty method

The CreateProperty method creates a new property and adds it to a property set.

Syntax


HRESULT CreateProperty(
  [in]   const BSTR bstrPropName,
  [in]   const VARIANT *pVarPropValue,
  [out]  IOCSPProperty **ppVal
);

Parameters

bstrPropName [in]

A string that contains the name of the new property object.

pVarPropValue [in]
C++A pointer to the new property object.
VBThe new property object.
ppVal [out]

A pointer to an IOCSPProperty interface for the newly created object.

Return value

C++

If the method succeeds, it returns S_OK.

If the method fails, it returns an HRESULT value that indicates the error. For a list of common error codes, see Common HRESULT Values.

VB

An IOCSPProperty interface for the newly created object.

Requirements

Minimum supported client

None supported

Minimum supported server

Windows Server 2008 Datacenter, Windows Server 2008 Enterprise [desktop apps only]

Header

Certadm.h (include Certserv.h)

IDL

Certadm.idl

Library

Certadm.lib

DLL

Certadm.dll

IID

IID_IOCSPPropertyCollection is defined as 2597C18D-54E6-4B74-9FA9-A6BFDA99CBBE

See also

IOCSPPropertyCollection

 

 

Community Additions

ADD
Show:
© 2014 Microsoft