コード例 #1
0
 private void OnDeserializing(StreamingContext context)
 {
     SecurityPrincipalType[] value = new SecurityPrincipalType[]
     {
         SecurityPrincipalType.UniversalSecurityGroup,
         SecurityPrincipalType.User
     };
     base["Types"] = value;
     base["RoleGroupAssignable"] = true;
 }
コード例 #2
0
        public static string GenerateIconAltText(SecurityPrincipalType securityPrincipalType)
        {
            string result = string.Empty;

            switch (securityPrincipalType)
            {
            case SecurityPrincipalType.User:
                result = Strings.MailboxAltText;
                break;

            case SecurityPrincipalType.Group:
                result = Strings.DistributionGroupAltText;
                break;
            }
            return(result);
        }
コード例 #3
0
        public static string FromEnum(SecurityPrincipalType securityPrincipalType)
        {
            string result = string.Empty;

            switch (securityPrincipalType)
            {
            case SecurityPrincipalType.User:
                result = CommandSprite.GetCssClass(CommandSprite.SpriteId.Mailbox16);
                break;

            case SecurityPrincipalType.Group:
                result = CommandSprite.GetCssClass(CommandSprite.SpriteId.DistributionGroup16);
                break;
            }
            return(result);
        }