IOpcRelationshipSelector::GetSelectorType method

Gets a value that describes how relationships are selected to be referenced for signing.

Syntax


HRESULT GetSelectorType(
  [out, retval] OPC_RELATIONSHIP_SELECTOR *selector
);

Parameters

selector [out, retval]

A value that describes which IOpcRelationship interface property will be compared to the string returned by the GetSelectionCriterion method.

Return value

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

Return codeDescription
S_OK

The method succeeded.

E_POINTER

The selector parameter is NULL.

 

Remarks

The following table shows how OPC_RELATIONSHIP_SELECTOR values map to the relationship type and relationship identifier properties.

OPC_RELATIONSHIP_SELECTOR ValueRelationship PropertyDescription
OPC_RELATIONSHIP_SELECT_BY_TYPERelationship type

Selects relationships that have a relationship type that matches selectionCriterion string.

OPC_RELATIONSHIP_SELECT_BY_IDRelationship identifier

Selects relationships that have a relationship identifier that matches selectionCriterion string.

 

Thread Safety

Packaging objects are not thread-safe.

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

Requirements

Minimum supported client

Windows 7 [desktop apps only]

Minimum supported server

Windows Server 2008 R2 [desktop apps only]

Header

Msopc.h

IDL

OpcDigitalSignature.idl

See also

IOpcRelationshipSelector
Overviews
Digital Signatures Overview
Getting Started with the Packaging API
Packaging API Programming Guide
Reference
IOpcRelationshipSelectorEnumerator
IOpcRelationshipSelectorSet
Core Packaging Interfaces
Packaging Interfaces
Packaging API Reference
Packaging API Samples

 

 

Community Additions

ADD
Show: