Share via


DataCollection.ContainsItemForRole Method

Gets a Boolean value that indicates if the list of data collection items contains a manager or a subscriber data collection item.

Namespace: Microsoft.Clm.Shared.ProfileTemplates
Assembly: Microsoft.Clm.Shared (in Microsoft.Clm.Shared.dll)

Usage

'Usage
Dim instance As DataCollection
Dim applicationUserRole As ApplicationUserRole
Dim returnValue As Boolean

returnValue = instance.ContainsItemForRole(applicationUserRole)

Syntax

'Declaration
Public Function ContainsItemForRole ( _
    applicationUserRole As ApplicationUserRole _
) As Boolean
public bool ContainsItemForRole (
    ApplicationUserRole applicationUserRole
)
public:
bool ContainsItemForRole (
    ApplicationUserRole applicationUserRole
)
public boolean ContainsItemForRole (
    ApplicationUserRole applicationUserRole
)
public function ContainsItemForRole (
    applicationUserRole : ApplicationUserRole
) : boolean

Parameters

Return Value

true if the list of data collection items contains at least one DataCollectionItem object where the OriginatorRole property matches the specified ApplicationUserRole value; otherwise, false.

Remarks

This method returns false if None is specified for the ApplicationUserRole value.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

Windows 2008 x64 Edition

Target Platforms

Windows XP SP3, Windows Vista SP1+, Windows 7, Windows Server 2008, Windows Server 2008 R2

See Also

Reference

DataCollection Class
DataCollection Members
Microsoft.Clm.Shared.ProfileTemplates Namespace
ApplicationUserRole Enumeration
DataCollectionItem
OriginatorRole