当前位置: 首页>>代码示例>>C#>>正文


C# IdentityReference类代码示例

本文整理汇总了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");
			}
		}
开发者ID:nickchal,项目名称:pash,代码行数:13,代码来源:ActiveDirectorySecurity.cs

示例2: SetGroup

 public void SetGroup(IdentityReference identity);
开发者ID:scott156,项目名称:corefx-progress,代码行数:1,代码来源:System.Security.AccessControl.cs

示例3: AuditRule

 protected AuditRule(IdentityReference identity, int accessMask, bool isInherited, InheritanceFlags inheritanceFlags, PropagationFlags propagationFlags, AuditFlags auditFlags);
开发者ID:scott156,项目名称:corefx-progress,代码行数:1,代码来源:System.Security.AccessControl.cs

示例4: AccessRuleFactory

 public abstract AccessRule AccessRuleFactory(IdentityReference identityReference, int accessMask, bool isInherited, InheritanceFlags inheritanceFlags, PropagationFlags propagationFlags, AccessControlType type);
开发者ID:scott156,项目名称:corefx-progress,代码行数:1,代码来源:System.Security.AccessControl.cs

示例5: PurgeAccessRules

 public virtual void PurgeAccessRules(IdentityReference identity);
开发者ID:scott156,项目名称:corefx-progress,代码行数:1,代码来源:System.Security.AccessControl.cs

示例6: SemaphoreAuditRule

 public SemaphoreAuditRule(IdentityReference identity, SemaphoreRights eventRights, AuditFlags flags);
开发者ID:scott156,项目名称:corefx-progress,代码行数:1,代码来源:System.Threading.AccessControl.cs

示例7: ObjectAccessRule

 protected ObjectAccessRule(IdentityReference identity, int accessMask, bool isInherited, InheritanceFlags inheritanceFlags, PropagationFlags propagationFlags, Guid objectType, Guid inheritedObjectType, AccessControlType type);
开发者ID:scott156,项目名称:corefx-progress,代码行数:1,代码来源:System.Security.AccessControl.cs

示例8: ExtendedRightAccessRule

		public ExtendedRightAccessRule (IdentityReference identity, AccessControlType type, Guid extendedRightType) : base(identity, 256, type, extendedRightType, false, InheritanceFlags.None, PropagationFlags.None, Guid.Empty)
		{
		}
开发者ID:nlhepler,项目名称:mono,代码行数:3,代码来源:ExtendedRightAccessRule.cs

示例9: ListChildrenAccessRule

		public ListChildrenAccessRule (IdentityReference identity, AccessControlType type) : base(identity, 4, type, Guid.Empty, false, InheritanceFlags.None, PropagationFlags.None, Guid.Empty)
		{
		}
开发者ID:nlhepler,项目名称:mono,代码行数:3,代码来源:ListChildrenAccessRule.cs

示例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);
		}
开发者ID:nickchal,项目名称:pash,代码行数:4,代码来源:ActiveDirectorySecurity.cs

示例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);
		}
开发者ID:nickchal,项目名称:pash,代码行数:4,代码来源:ActiveDirectorySecurity.cs

示例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");
			}
		}
开发者ID:nickchal,项目名称:pash,代码行数:13,代码来源:ActiveDirectorySecurity.cs

示例13: EventWaitHandleAuditRule

 public EventWaitHandleAuditRule(IdentityReference identity, EventWaitHandleRights eventRights, AuditFlags flags);
开发者ID:scott156,项目名称:corefx-progress,代码行数:1,代码来源:System.Threading.AccessControl.cs

示例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)
 {
 }
开发者ID:pritesh-mandowara-sp,项目名称:DecompliedDotNetLibraries,代码行数:3,代码来源:DeleteTreeAccessRule.cs

示例15: SemaphoreAccessRule

 public SemaphoreAccessRule(IdentityReference identity, SemaphoreRights eventRights, AccessControlType type);
开发者ID:scott156,项目名称:corefx-progress,代码行数:1,代码来源:System.Threading.AccessControl.cs


注:本文中的IdentityReference类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。