Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Services / Messaging / System / Messaging / AccessControlEntry.cs / 1305376 / AccessControlEntry.cs
using System; using System.Collections; using System.Runtime.InteropServices; using System.ComponentModel; using System.Text; using System.Messaging.Interop; namespace System.Messaging { ////// /// public class AccessControlEntry { //const int customRightsMask = 0x0000ffff; const StandardAccessRights standardRightsMask = (StandardAccessRights)0x001f0000; const GenericAccessRights genericRightsMask = unchecked((GenericAccessRights)0xf0000000); internal int accessFlags = 0; Trustee trustee = null; AccessControlEntryType entryType = AccessControlEntryType.Allow; ///[To be supplied.] ////// /// public AccessControlEntry() { } ///[To be supplied.] ////// /// public AccessControlEntry(Trustee trustee) { this.Trustee = trustee; } ///[To be supplied.] ////// /// public AccessControlEntry(Trustee trustee, GenericAccessRights genericAccessRights, StandardAccessRights standardAccessRights, AccessControlEntryType entryType) { this.GenericAccessRights = genericAccessRights; this.StandardAccessRights = standardAccessRights; this.Trustee = trustee; this.EntryType = entryType; } ///[To be supplied.] ////// /// public AccessControlEntryType EntryType { get { return entryType; } set { if (!ValidationUtility.ValidateAccessControlEntryType(value)) throw new InvalidEnumArgumentException("value", (int)value, typeof(AccessControlEntryType)); entryType = value; } } ///[To be supplied.] ////// /// protected int CustomAccessRights { get { return accessFlags; } set { accessFlags = value; } } ///[To be supplied.] ////// /// public GenericAccessRights GenericAccessRights { get { return (GenericAccessRights)accessFlags & genericRightsMask; } set { // make sure these flags really are genericAccessRights if ((value & genericRightsMask) != value) throw new InvalidEnumArgumentException("value", (int)value, typeof(GenericAccessRights)); accessFlags = (accessFlags & (int)~genericRightsMask) | (int)value; } } ///[To be supplied.] ////// /// public StandardAccessRights StandardAccessRights { get { return (StandardAccessRights)accessFlags & standardRightsMask; } set { // make sure these flags really are standardAccessRights if ((value & standardRightsMask) != value) throw new InvalidEnumArgumentException("value", (int)value, typeof(StandardAccessRights)); accessFlags = (accessFlags & (int)~standardRightsMask) | (int)value; } } ///[To be supplied.] ////// /// public Trustee Trustee { get { return trustee; } set { if (value == null) throw new ArgumentNullException("value"); trustee = value; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.[To be supplied.] ///
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- LinqTreeNodeEvaluator.cs
- ErrorWebPart.cs
- UpWmlMobileTextWriter.cs
- SemanticResolver.cs
- SchemaHelper.cs
- XmlSchemaRedefine.cs
- ObjectParameter.cs
- Selection.cs
- EncodingFallbackAwareXmlTextWriter.cs
- Utils.cs
- Highlights.cs
- PaperSource.cs
- CollectionBuilder.cs
- ParsedAttributeCollection.cs
- DataSourceGeneratorException.cs
- CodeDomSerializerBase.cs
- DocumentGridPage.cs
- WebMethodAttribute.cs
- IOException.cs
- BindingMemberInfo.cs
- wgx_commands.cs
- ClonableStack.cs
- DataBinding.cs
- MobileListItem.cs
- ConstructorExpr.cs
- PageSetupDialog.cs
- PeerDuplexChannelListener.cs
- NativeMethods.cs
- Material.cs
- FontFaceLayoutInfo.cs
- SchemaName.cs
- GC.cs
- Tool.cs
- MarshalByRefObject.cs
- TextFormatterImp.cs
- KeyConstraint.cs
- DemultiplexingClientMessageFormatter.cs
- Int16AnimationBase.cs
- CompositeControl.cs
- TimeStampChecker.cs
- XmlSchemaNotation.cs
- webbrowsersite.cs
- RenderingEventArgs.cs
- ChangePassword.cs
- RangeValidator.cs
- TableLayoutSettings.cs
- EntityReference.cs
- ChannelPoolSettings.cs
- DeviceFiltersSection.cs
- DropShadowEffect.cs
- WebPartUserCapability.cs
- AngleUtil.cs
- IPipelineRuntime.cs
- SecurityTokenException.cs
- ExtensionWindowResizeGrip.cs
- MetafileHeaderEmf.cs
- MouseEvent.cs
- XmlDataSourceNodeDescriptor.cs
- ViewSimplifier.cs
- InstanceCompleteException.cs
- WebServiceHandlerFactory.cs
- ScopeElementCollection.cs
- SiteMapDataSource.cs
- ViewKeyConstraint.cs
- DropDownList.cs
- CompiledRegexRunnerFactory.cs
- BackoffTimeoutHelper.cs
- ToolBar.cs
- LoadedOrUnloadedOperation.cs
- StylusPointDescription.cs
- FlowNode.cs
- BasicHttpMessageCredentialType.cs
- ResourceReferenceKeyNotFoundException.cs
- PanelDesigner.cs
- FormsAuthenticationModule.cs
- ResourceDictionary.cs
- _FixedSizeReader.cs
- Roles.cs
- FormViewDeletedEventArgs.cs
- OutputScopeManager.cs
- UIElementHelper.cs
- CanonicalFormWriter.cs
- AssemblyName.cs
- StorageEntityContainerMapping.cs
- DesignerDataSourceView.cs
- WindowsPrincipal.cs
- CodeDefaultValueExpression.cs
- DataBindingHandlerAttribute.cs
- TextServicesContext.cs
- SqlVersion.cs
- PluralizationService.cs
- ActivityWithResultWrapper.cs
- MessageQueueEnumerator.cs
- Span.cs
- GenericRootAutomationPeer.cs
- WCFServiceClientProxyGenerator.cs
- XNodeValidator.cs
- Menu.cs
- ModelUIElement3D.cs
- PersonalizationStateQuery.cs