A Sandcastle Documented Class Library

# NamedSetToken Constructor

Initializes a new instance of the NamedSetToken class.

Namespace: Dundas.BI.Data.Parameters.Tokens
Assembly: Dundas.BI.Core (in Dundas.BI.Core.dll) Version: 2.0.0.0 (10.0.0.1002)
Syntax
C#
VB
C++
F#
Copy

    public NamedSetToken(
    	Guid projectId,
    	Guid ownerId,
    	TokenOwnerKind ownerKind,
    	IHierarchy hierarchy,
    	ParameterValue selection
    )

    Public Sub New (
    	projectId As Guid,
    	ownerId As Guid,
    	ownerKind As TokenOwnerKind,
    	hierarchy As IHierarchy,
    	selection As ParameterValue
    )

    public:
    NamedSetToken(
    	Guid projectId,
    	Guid ownerId,
    	TokenOwnerKind ownerKind,
    	IHierarchy^ hierarchy,
    	ParameterValue^ selection
    )

    new :
            projectId : Guid *
            ownerId : Guid *
            ownerKind : TokenOwnerKind *
            hierarchy : IHierarchy *
            selection : ParameterValue -> NamedSetToken

#### Parameters

projectId
  Type: System
  Guid
  The ID of the project associated with the token. Specify Empty if the token is not associated with a project.
ownerId
  Type: System
  Guid
  The ID of the account or tenant associated with the token. Specify Empty if there is no such association.
ownerKind
  Type: Dundas.BI.Data.Parameters.Tokens
  TokenOwnerKind
  Specifies the kind of object referenced by ownerId.
hierarchy
  Type: Dundas.BI.Data.Metadata
  IHierarchy
  The hierarchy.
selection
  Type: Dundas.BI.Data.Parameters
  ParameterValue
  The selection.

Exceptions

Exception | Condition
--- | ---
ArgumentException | ownerId is Empty and ownerKind is not None or selection is not valid.
ArgumentOutOfRangeException | ownerKind is not one of the TokenOwnerKind values.
ArgumentNullException | hierarchy or selection is .

See Also

#### Reference

NamedSetToken Class
Dundas.BI.Data.Parameters.Tokens Namespace