IOpcSignatureRelationshipReferenceSet::CreateRelationshipSelectorSet method (msopc.h)

Creates an IOpcRelationshipSelectorSet interface pointer that is used as the selectorSet parameter value of the Create method.

Syntax

HRESULT CreateRelationshipSelectorSet(
  [out] IOpcRelationshipSelectorSet **selectorSet
);

Parameters

[out] selectorSet

A new IOpcRelationshipSelectorSet interface pointer.

Return value

The method returns an HRESULT. Possible values include, but are not limited to, those in the following table.

Return code Description
S_OK
The method succeeded.
E_POINTER
The selectorSet parameter is NULL.

Remarks

To select a subset of the relationships (which are stored in the Relationships part to be referenced) to be signed when the signature is generated, call the Create method with the relationshipSigningOption parameter value set to OPC_RELATIONSHIP_SIGN_USING_SELECTORS and the selectorSet parameter value set to the IOpcRelationshipSelectorSet interface pointer created by this method.

Thread Safety

Packaging objects are not thread-safe.

For more information, see the Getting Started with the Packaging API.

Requirements

Requirement Value
Minimum supported client Windows 7 [desktop apps only]
Minimum supported server Windows Server 2008 R2 [desktop apps only]
Target Platform Windows
Header msopc.h

See also

Core Packaging Interfaces

Digital Signatures Overview

Getting Started with the Packaging API

IOpcSignatureRelationshipReferenceSet

Overviews

Packaging API Programming Guide

Packaging API Reference

Packaging API Samples

Packaging Digital Signature Interfaces

Packaging Interfaces

Reference