本文整理汇总了C#中IdentityReference类的典型用法代码示例。如果您正苦于以下问题:C# IdentityReference类的具体用法?C# IdentityReference怎么用?C# IdentityReference使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
IdentityReference类属于命名空间,在下文中一共展示了IdentityReference类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: RemoveAccess
public void RemoveAccess(IdentityReference identity, AccessControlType type)
{
if (this.DaclRetrieved())
{
ActiveDirectoryAccessRule activeDirectoryAccessRule = new ActiveDirectoryAccessRule(identity, ActiveDirectoryRights.GenericRead, type, ActiveDirectorySecurityInheritance.None);
base.RemoveAccessRuleAll(activeDirectoryAccessRule);
return;
}
else
{
throw new InvalidOperationException("CannotModifyDacl");
}
}
示例2: SetGroup
public void SetGroup(IdentityReference identity);
示例3: AuditRule
protected AuditRule(IdentityReference identity, int accessMask, bool isInherited, InheritanceFlags inheritanceFlags, PropagationFlags propagationFlags, AuditFlags auditFlags);
示例4: AccessRuleFactory
public abstract AccessRule AccessRuleFactory(IdentityReference identityReference, int accessMask, bool isInherited, InheritanceFlags inheritanceFlags, PropagationFlags propagationFlags, AccessControlType type);
示例5: PurgeAccessRules
public virtual void PurgeAccessRules(IdentityReference identity);
示例6: SemaphoreAuditRule
public SemaphoreAuditRule(IdentityReference identity, SemaphoreRights eventRights, AuditFlags flags);
示例7: ObjectAccessRule
protected ObjectAccessRule(IdentityReference identity, int accessMask, bool isInherited, InheritanceFlags inheritanceFlags, PropagationFlags propagationFlags, Guid objectType, Guid inheritedObjectType, AccessControlType type);
示例8: ExtendedRightAccessRule
public ExtendedRightAccessRule (IdentityReference identity, AccessControlType type, Guid extendedRightType) : base(identity, 256, type, extendedRightType, false, InheritanceFlags.None, PropagationFlags.None, Guid.Empty)
{
}
示例9: ListChildrenAccessRule
public ListChildrenAccessRule (IdentityReference identity, AccessControlType type) : base(identity, 4, type, Guid.Empty, false, InheritanceFlags.None, PropagationFlags.None, Guid.Empty)
{
}
示例10: AuditRuleFactory
public override AuditRule AuditRuleFactory(IdentityReference identityReference, int accessMask, bool isInherited, InheritanceFlags inheritanceFlags, PropagationFlags propagationFlags, AuditFlags flags, Guid objectGuid, Guid inheritedObjectGuid)
{
return new ActiveDirectoryAuditRule(identityReference, accessMask, flags, objectGuid, isInherited, inheritanceFlags, propagationFlags, inheritedObjectGuid);
}
示例11: AccessRuleFactory
public override AccessRule AccessRuleFactory(IdentityReference identityReference, int accessMask, bool isInherited, InheritanceFlags inheritanceFlags, PropagationFlags propagationFlags, AccessControlType type, Guid objectGuid, Guid inheritedObjectGuid)
{
return new ActiveDirectoryAccessRule(identityReference, accessMask, type, objectGuid, isInherited, inheritanceFlags, propagationFlags, inheritedObjectGuid);
}
示例12: RemoveAudit
public void RemoveAudit(IdentityReference identity)
{
if (this.SaclRetrieved())
{
ActiveDirectoryAuditRule activeDirectoryAuditRule = new ActiveDirectoryAuditRule(identity, ActiveDirectoryRights.GenericRead, AuditFlags.Success | AuditFlags.Failure, ActiveDirectorySecurityInheritance.None);
base.RemoveAuditRuleAll(activeDirectoryAuditRule);
return;
}
else
{
throw new InvalidOperationException("CannotModifySacl");
}
}
示例13: EventWaitHandleAuditRule
public EventWaitHandleAuditRule(IdentityReference identity, EventWaitHandleRights eventRights, AuditFlags flags);
示例14: DeleteTreeAccessRule
public DeleteTreeAccessRule(IdentityReference identity, AccessControlType type, ActiveDirectorySecurityInheritance inheritanceType, Guid inheritedObjectType) : base(identity, 0x40, type, Guid.Empty, false, ActiveDirectoryInheritanceTranslator.GetInheritanceFlags(inheritanceType), ActiveDirectoryInheritanceTranslator.GetPropagationFlags(inheritanceType), inheritedObjectType)
{
}
示例15: SemaphoreAccessRule
public SemaphoreAccessRule(IdentityReference identity, SemaphoreRights eventRights, AccessControlType type);