ADRoleFactoryConfiguration.cs source code in C# .NET

Source code for the .NET framework in C#

                        

Code:

/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / cdf / src / WF / Activities / Role / ADRoleFactoryConfiguration.cs / 1305376 / ADRoleFactoryConfiguration.cs

                            #region Using directives 

using System;
using System.Collections.Generic;
using System.Text; 
using System.DirectoryServices;
using System.Configuration; 
 
#endregion
 
namespace System.Workflow.Activities.Configuration
{
    sealed public class ActiveDirectoryRoleFactoryConfiguration : ConfigurationSection
    { 
        private const String _RootPath = "RootPath";
        private const String _Manager = "Manager"; 
        private const String _DistinguishedName = "DistiguishedName"; 
        private const String _DirectReports = "DirectReports";
        private const String _Group = "Group"; 
        private const String _Member = "Member";

        [ConfigurationProperty(_RootPath, DefaultValue = "")]
        public string RootPath 
        {
            get { return (string)base[_RootPath]; } 
            set { base[_RootPath] = value; } 
        }
 
        [ConfigurationProperty(_Manager, DefaultValue = "manager")]
        public String Manager
        {
            get { return (string)base[_Manager]; } 
            set { base[_Manager] = value; }
        } 
 
        [ConfigurationProperty(_DistinguishedName, DefaultValue = "distinguishedName")]
        public String DistinguishedName 
        {
            get { return (string)base[_DistinguishedName]; }
            set { base[_DistinguishedName] = value; }
        } 

        [ConfigurationProperty(_DirectReports, DefaultValue = "directReports")] 
        public String DirectReports 
        {
            get { return (string)base[_DirectReports]; } 
            set { base[_DirectReports] = value; }
        }

        [ConfigurationProperty(_Group, DefaultValue = "group")] 
        public String Group
        { 
            get { return (string)base[_Group]; } 
            set { base[_Group] = value; }
        } 

        [ConfigurationProperty(_Member, DefaultValue = "member")]
        public String Member
        { 
            get { return (string)base[_Member]; }
            set { base[_Member] = value; } 
        } 
    }
} 

// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
// Copyright (c) Microsoft Corporation. All rights reserved.
                        

Link Menu

Network programming in C#, Network Programming in VB.NET, Network Programming in .NET
This book is available now!
Buy at Amazon US or
Buy at Amazon UK