Windows Dev Center

IOCSPPropertyCollection::InitializeFromProperties method

The InitializeFromProperties method creates a property set from the properties contained in an existing server configuration.

Syntax


HRESULT InitializeFromProperties(
  [inconst VARIANT *pVarProperties
);

Parameters

pVarProperties [in]
C++

A pointer to an array that contains the property values. Each array element is a VARIANT array that contains the property name BSTR and a value VARIANT.

VB

An array that contains the property values. Each array element is a Variant array that contains the property name String and a value Variant.

Return value

VB

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.

If the method returns E_UNEXPECTED, the array pointed to by the pVarProperties parameter contained duplicate properties.

If the method returns DISP_E_ARRAYISLOCKED, the array pointed to by the pVarProperties parameter is locked.

Examples

For an example of how to use InitializeFromProperties, see ProviderProperties.

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:
© 2015 Microsoft