GridHeaderUtils.IsHeaderAlreadyAdded Method
Indicates whether the header already exists in the specified list of headers.
Namespace: Microsoft.PerformancePoint.Scorecards
Assembly: Microsoft.PerformancePoint.Scorecards.Client (in Microsoft.PerformancePoint.Scorecards.Client.dll)
Syntax
'Declaration
Public Shared Function IsHeaderAlreadyAdded ( _
headers As List(Of GridHeaderItem), _
headerToCheck As GridHeaderItem, _
ByRef addedHeader As GridHeaderItem _
) As Boolean
'Usage
Dim headers As List(Of GridHeaderItem)
Dim headerToCheck As GridHeaderItem
Dim addedHeader As GridHeaderItem
Dim returnValue As Boolean
returnValue = GridHeaderUtils.IsHeaderAlreadyAdded(headers, _
headerToCheck, addedHeader)
public static bool IsHeaderAlreadyAdded(
List<GridHeaderItem> headers,
GridHeaderItem headerToCheck,
ref GridHeaderItem addedHeader
)
Parameters
headers
Type: System.Collections.Generic.List<GridHeaderItem>The specified list of headers.
headerToCheck
Type: Microsoft.PerformancePoint.Scorecards.GridHeaderItemThe header to find.
- addedHeader
Type: Microsoft.PerformancePoint.Scorecards.GridHeaderItem
Return Value
Type: System.Boolean
Remarks
This method helps to ensure that definition headers of named set expressions are added only once.