System.Security.PermissionSetTriple.IsEmpty C# (CSharp) Method

IsEmpty() private method

private IsEmpty ( ) : bool
return bool
        internal bool IsEmpty()
        {
            return (AssertSet == null && GrantSet == null && RefusedSet == null);
        }

Usage Example

Beispiel #1
0
 private void UpdateTripleListAndCreateNewTriple(PermissionSetTriple currentTriple, ArrayList tripleList)
 {
     if (!currentTriple.IsEmpty())
     {
         if (m_firstPermSetTriple == null && m_permSetTriples == null)
         {
             m_firstPermSetTriple = new PermissionSetTriple(currentTriple);
         }
         else
         {
             EnsureTriplesListCreated();
             m_permSetTriples.Add(new PermissionSetTriple(currentTriple));
         }
         currentTriple.Reset();
     }
     if (tripleList != null)
     {
         EnsureTriplesListCreated();
         m_permSetTriples.AddRange(tripleList);
     }
 }
All Usage Examples Of System.Security.PermissionSetTriple::IsEmpty