This topic has not yet been rated - Rate this topic

IAzScope::SetProperty method

The SetProperty method sets the specified value to the IAzScope object property with the specified property ID.

Syntax


HRESULT SetProperty(
  [in]            LONG lPropId,
  [in]            VARIANT varProp,
  [in, optional]  VARIANT varReserved
);

Parameters

lPropId [in]

Property ID of the IAzScope object property to set. The following table shows the possible values.

ValueMeaning
AZ_PROP_APPLICATION_DATA

Also accessed through the ApplicationData property

AZ_PROP_DESCRIPTION

Also accessed through the Description property

AZ_PROP_NAME

Also accessed through the Name property

 

varProp [in]

Value to set to the IAzScope object property specified by the lPropId parameter. The following table shows the type of data that must be used depending on the value of the lPropId parameter.

lPropId valueData type (C++/Visual Basic)
AZ_PROP_APPLICATION_DATA

BSTR/String

AZ_PROP_DESCRIPTION

BSTR/String

AZ_PROP_NAME

BSTR/String

 

varReserved [in, optional]

Reserved for future use.

Return value

The return value is an HRESULT. A value of S_OK indicates success. Any other value indicates that the operation failed.

Remarks

You must call the Submit method to persist any changes made by this method.

Requirements

Minimum supported client

Windows Vista [desktop apps only]

Minimum supported server

Windows Server 2003 [desktop apps only]

Redistributable

Windows Server 2003 Administration Tools Pack on Windows XP

Header

Azroles.h

Library

Azroles.lib

DLL

Azroles.dll

IID

IID_IAzScope is defined as 00e52487-e08d-4514-b62e-877d5645f5ab

 

 

Send comments about this topic to Microsoft

Build date: 10/26/2012

Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.