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 {
///
///
/// [To be supplied.]
///
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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- COM2ICategorizePropertiesHandler.cs
- MatrixTransform3D.cs
- DefaultEventAttribute.cs
- CodeLabeledStatement.cs
- PropertySourceInfo.cs
- CodeArrayIndexerExpression.cs
- PrintDocument.cs
- WindowPattern.cs
- MetadataSource.cs
- PeerValidationBehavior.cs
- PersonalizableTypeEntry.cs
- MatchAttribute.cs
- ScriptResourceAttribute.cs
- WindowsTooltip.cs
- HtmlTextBoxAdapter.cs
- Html32TextWriter.cs
- GridEntryCollection.cs
- GACIdentityPermission.cs
- ActivationArguments.cs
- ZoneLinkButton.cs
- EntityTransaction.cs
- ValidatorAttribute.cs
- ExpressionCopier.cs
- FamilyMap.cs
- ComponentConverter.cs
- TableItemPatternIdentifiers.cs
- FormatSettings.cs
- UrlMappingsSection.cs
- Stackframe.cs
- Win32.cs
- HostUtils.cs
- TdsEnums.cs
- AutoSizeComboBox.cs
- X509CertificateValidator.cs
- ViewBox.cs
- ColorKeyFrameCollection.cs
- SqlBooleanizer.cs
- WebBrowserSiteBase.cs
- ConnectivityStatus.cs
- CommonRemoteMemoryBlock.cs
- BindMarkupExtensionSerializer.cs
- ObjectDataSourceSelectingEventArgs.cs
- Win32PrintDialog.cs
- ObjectDataSourceFilteringEventArgs.cs
- BitmapEffectInputData.cs
- TagPrefixInfo.cs
- SEHException.cs
- ConfigXmlCDataSection.cs
- SecurityBindingElement.cs
- StaticFileHandler.cs
- SafeNativeMemoryHandle.cs
- TraversalRequest.cs
- StateItem.cs
- BaseDataBoundControl.cs
- CmsInterop.cs
- GridViewColumnCollection.cs
- Size3DValueSerializer.cs
- Control.cs
- WebPartConnectionsCloseVerb.cs
- SqlConnectionHelper.cs
- ADRoleFactoryConfiguration.cs
- SQLInt16.cs
- DataGridColumnEventArgs.cs
- EntityTemplateFactory.cs
- SubMenuStyleCollection.cs
- PerspectiveCamera.cs
- PeerCollaborationPermission.cs
- DynamicDataRouteHandler.cs
- XamlPoint3DCollectionSerializer.cs
- JapaneseCalendar.cs
- EntityDataSourceDesignerHelper.cs
- LongValidatorAttribute.cs
- SettingsPropertyValueCollection.cs
- SyndicationFeedFormatter.cs
- SimpleParser.cs
- Utils.cs
- TypeLibConverter.cs
- ServiceNotStartedException.cs
- TypographyProperties.cs
- GroupQuery.cs
- ComboBoxRenderer.cs
- XmlSchemaFacet.cs
- NodeLabelEditEvent.cs
- EncoderParameter.cs
- XmlSchemaAnnotation.cs
- Selection.cs
- IsolatedStorageFile.cs
- IndexingContentUnit.cs
- Group.cs
- translator.cs
- AssemblyName.cs
- PageThemeCodeDomTreeGenerator.cs
- Ref.cs
- PageAsyncTask.cs
- LinqDataView.cs
- PrimitiveSchema.cs
- SQLBytesStorage.cs
- KeyConverter.cs
- ParallelTimeline.cs
- NullableDecimalMinMaxAggregationOperator.cs