ICCPolicy interface

Description

ICCPolicy is the preferred CAL interface to read and write project and stream policy settings.

This interface and the ICCPolicies interface supersede the ICCProjectPolicy interface and ICCProject::Policy, which handle only a limited set of project policies and do not handle stream policies.

Inheritance

Read-only properties

get_Name

Retrieves the name of the policy

get_Value

Retrieves the value of the policy

Methods

init

Does one of the following, based on a supplied argument: sets the value of policy name, creates a ICCProject object, and gets the policy value and assigns it to indicated policy; or sets the policy name from the project policy, uses the stream to create an ICCStream object, and sets the value of the policy name from the stream.

put_Value

Sets the value of the policy to the specified string.

Examples

Creation

get_Name

Retrieves the name of the policy

Category

Read-only property

VB syntax

Property get_Name As Name

Visual C++ syntax

HRESULT get_Name(
     _bstr_t Name);

Member of: ICCPolicy interface

get_Value

Retrieves the value of the policy

Category

Read-only property

VB syntax

Visual C++ syntax


Member of: ICCPolicy interface

init

Does one of the following, based on a supplied argument: sets the value of policy name, creates a ICCProject object, and gets the policy value and assigns it to indicated policy; or sets the policy name from the project policy, uses the stream to create an ICCStream object, and sets the value of the policy name from the stream.

Category

Method

VB syntax

Visual C++ syntax


Member of: ICCPolicy interface

put_Value

Sets the value of the policy to the specified string.

Category

Method

VB syntax

Visual C++ syntax


Member of: ICCPolicy interface


Feedback