Class ScopeEntry
Encapsulates data that represents a section or entry of a Scope
Inheritance
System.Object
ScopeEntry
Namespace: Microsoft.GNS.Roster
Assembly: Microsoft.GNS.Roster.Common.dll
Syntax
public class ScopeEntry : object
Constructors
View SourceScopeEntry(String, Guid)
Initializes a new instance of the ScopeEntry class.
Declaration
public ScopeEntry(string identifer, Guid scopeId)
Parameters
Type | Name | Description |
---|---|---|
System.String | identifer | The scope identifier. Use identifier constants from Scope. |
Guid | scopeId | The scope entry Id. |
Properties
View SourceIdentifier
Gets the scope identifier that represents objects such as and Org, Project, Tool, etc...
Declaration
public string Identifier { get; }
Property Value
Type | Description |
---|---|
System.String |
ScopeId
Gets the database Id of the scope entry.
Declaration
public Guid ScopeId { get; }
Property Value
Type | Description |
---|---|
Guid |
Methods
View SourceTryParse(String[], out ScopeEntry)
Try to parse an individual section/entry of a scope.
Declaration
public static bool TryParse(string[] entryValues, out ScopeEntry entry)
Parameters
Type | Name | Description |
---|---|---|
System.String[] | entryValues | The colon separated values from the section/entry. |
ScopeEntry | entry | Output ScopeEntry value representing the section/entry provided. |
Returns
Type | Description |
---|---|
System.Boolean | True if successfully parsed. Otherwise false. |