SecurityManager.CheckPermission Method (TeamFoundationRequestContext, IEnumerable<DiscussionThread>, Int32, Boolean)
Namespace: Microsoft.TeamFoundation.Discussion.Server
Assembly: Microsoft.TeamFoundation.Discussion.Server (in Microsoft.TeamFoundation.Discussion.Server.dll)
Syntax
'Declaration
Public Shared Function CheckPermission ( _
requestContext As TeamFoundationRequestContext, _
discussions As IEnumerable(Of DiscussionThread), _
requiredPermissions As Integer, _
throwOnAccessDenied As Boolean _
) As Dictionary(Of Integer, Boolean)
public static Dictionary<int, bool> CheckPermission(
TeamFoundationRequestContext requestContext,
IEnumerable<DiscussionThread> discussions,
int requiredPermissions,
bool throwOnAccessDenied
)
public:
static Dictionary<int, bool>^ CheckPermission(
TeamFoundationRequestContext^ requestContext,
IEnumerable<DiscussionThread^>^ discussions,
int requiredPermissions,
bool throwOnAccessDenied
)
static member CheckPermission :
requestContext:TeamFoundationRequestContext *
discussions:IEnumerable<DiscussionThread> *
requiredPermissions:int *
throwOnAccessDenied:bool -> Dictionary<int, bool>
public static function CheckPermission(
requestContext : TeamFoundationRequestContext,
discussions : IEnumerable<DiscussionThread>,
requiredPermissions : int,
throwOnAccessDenied : boolean
) : Dictionary<int, boolean>
Parameters
- requestContext
Type: Microsoft.TeamFoundation.Framework.Server.TeamFoundationRequestContext
- discussions
Type: System.Collections.Generic.IEnumerable<DiscussionThread>
- requiredPermissions
Type: System.Int32
- throwOnAccessDenied
Type: System.Boolean
Return Value
Type: System.Collections.Generic.Dictionary<Int32, Boolean>
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.