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
- JpegBitmapEncoder.cs
- ResourcesChangeInfo.cs
- LinearQuaternionKeyFrame.cs
- DoubleKeyFrameCollection.cs
- InputProviderSite.cs
- ASCIIEncoding.cs
- TextElementCollectionHelper.cs
- LicenseProviderAttribute.cs
- ExclusiveTcpTransportManager.cs
- MessageQueuePermissionEntry.cs
- BeginEvent.cs
- DialogResultConverter.cs
- SkipQueryOptionExpression.cs
- ConfigurationElementCollection.cs
- ToolStripOverflowButton.cs
- Directory.cs
- DataColumnPropertyDescriptor.cs
- Int64KeyFrameCollection.cs
- AssemblyEvidenceFactory.cs
- GeometryModel3D.cs
- CaseCqlBlock.cs
- XmlSchemaDatatype.cs
- MouseActionConverter.cs
- TemplateBamlTreeBuilder.cs
- FullTrustAssembly.cs
- CompilerHelpers.cs
- AliasGenerator.cs
- RpcResponse.cs
- ListViewItemSelectionChangedEvent.cs
- ListViewGroupConverter.cs
- DurationConverter.cs
- BitmapVisualManager.cs
- Update.cs
- CodeDelegateInvokeExpression.cs
- MulticastOption.cs
- AutomationPropertyInfo.cs
- JsonXmlDataContract.cs
- PersonalizationProvider.cs
- SoapEnumAttribute.cs
- Function.cs
- VectorCollection.cs
- DnsPermission.cs
- SmuggledIUnknown.cs
- BlockingCollection.cs
- CompModSwitches.cs
- InvalidEnumArgumentException.cs
- DiscoveryMessageSequenceCD1.cs
- AssemblyAttributes.cs
- UserControlCodeDomTreeGenerator.cs
- PropertyEntry.cs
- KnownBoxes.cs
- XmlWrappingReader.cs
- CLSCompliantAttribute.cs
- RIPEMD160.cs
- PropertyValueUIItem.cs
- SettingsSavedEventArgs.cs
- DtrList.cs
- SemaphoreSecurity.cs
- ScalarOps.cs
- DataGridViewAutoSizeColumnModeEventArgs.cs
- ListCollectionView.cs
- LabelAutomationPeer.cs
- ToolStripScrollButton.cs
- EntityDataSourceMemberPath.cs
- CodeGenerator.cs
- dtdvalidator.cs
- ListControlDataBindingHandler.cs
- EventMappingSettingsCollection.cs
- uribuilder.cs
- AspNetSynchronizationContext.cs
- IPeerNeighbor.cs
- StaticFileHandler.cs
- XmlElementAttribute.cs
- SplitterCancelEvent.cs
- ListViewSortEventArgs.cs
- ByteArrayHelperWithString.cs
- SignatureGenerator.cs
- GlyphsSerializer.cs
- PartialTrustVisibleAssemblyCollection.cs
- SiteMapNodeCollection.cs
- Message.cs
- DataFormat.cs
- Rotation3D.cs
- LabelTarget.cs
- TextBox.cs
- ImportedNamespaceContextItem.cs
- TemplateBuilder.cs
- XmlAttributeCache.cs
- Screen.cs
- SqlInfoMessageEvent.cs
- WmlTextViewAdapter.cs
- HttpResponse.cs
- WebPermission.cs
- XmlQueryOutput.cs
- BufferedGraphicsManager.cs
- BitmapEffectGroup.cs
- WindowsFormsHelpers.cs
- MenuItemCollection.cs
- AnimationLayer.cs
- ListViewVirtualItemsSelectionRangeChangedEvent.cs