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
- AbsoluteQuery.cs
- PrimitiveType.cs
- Form.cs
- DataGridView.cs
- SqlServices.cs
- HtmlInputPassword.cs
- DataBindingList.cs
- DaylightTime.cs
- Stylus.cs
- SamlAuthorizationDecisionClaimResource.cs
- WCFBuildProvider.cs
- MasterPageParser.cs
- MessageDesigner.cs
- RtType.cs
- SmtpFailedRecipientsException.cs
- TreeNodeStyle.cs
- ContainerCodeDomSerializer.cs
- DelayedRegex.cs
- XmlSchemaAttribute.cs
- EventLogTraceListener.cs
- MetadataUtilsSmi.cs
- PageRequestManager.cs
- ListDictionary.cs
- ModelEditingScope.cs
- XmlIlTypeHelper.cs
- XmlCountingReader.cs
- LabelTarget.cs
- MsmqIntegrationInputMessage.cs
- ProxyGenerationError.cs
- ColumnResizeUndoUnit.cs
- TreeBuilder.cs
- CompilationLock.cs
- SqlClientMetaDataCollectionNames.cs
- DataTableClearEvent.cs
- ObjectResult.cs
- LocalizationComments.cs
- Number.cs
- BookmarkNameHelper.cs
- ping.cs
- AbsoluteQuery.cs
- MatchingStyle.cs
- Assembly.cs
- DocumentViewerBaseAutomationPeer.cs
- GatewayDefinition.cs
- ConfigurationCollectionAttribute.cs
- PrinterResolution.cs
- StorageEntityContainerMapping.cs
- XmlException.cs
- XmlQueryContext.cs
- Int32Storage.cs
- HandleCollector.cs
- TextServicesDisplayAttributePropertyRanges.cs
- KerberosReceiverSecurityToken.cs
- DataGridCellInfo.cs
- PreviewKeyDownEventArgs.cs
- ZipIOModeEnforcingStream.cs
- ObjectSecurity.cs
- MemoryStream.cs
- QuaternionRotation3D.cs
- AdornerLayer.cs
- PageBreakRecord.cs
- StdValidatorsAndConverters.cs
- CapabilitiesPattern.cs
- OutputCacheSettingsSection.cs
- OperationContext.cs
- QuaternionAnimation.cs
- DataServiceExpressionVisitor.cs
- WebPartEventArgs.cs
- RequestCachingSection.cs
- IntellisenseTextBox.designer.cs
- LockRecursionException.cs
- SecurityDocument.cs
- CompilerTypeWithParams.cs
- PanelDesigner.cs
- XamlStream.cs
- ChannelEndpointElement.cs
- RelatedImageListAttribute.cs
- InlineCollection.cs
- WebPartChrome.cs
- PathFigure.cs
- InteropAutomationProvider.cs
- UInt16.cs
- MobileControlsSection.cs
- EmptyQuery.cs
- PropertyMetadata.cs
- FormViewCommandEventArgs.cs
- XmlILOptimizerVisitor.cs
- AvTraceDetails.cs
- Exceptions.cs
- SessionStateContainer.cs
- Constant.cs
- BufferModesCollection.cs
- ACL.cs
- CardSpaceSelector.cs
- OdbcConnection.cs
- COM2IManagedPerPropertyBrowsingHandler.cs
- EventArgs.cs
- UiaCoreProviderApi.cs
- PeerNameRegistration.cs
- BindingBase.cs