Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Services / Messaging / System / Messaging / MessageQueuePermissionEntry.cs / 1305376 / MessageQueuePermissionEntry.cs
//---------------------------------------------------- //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Messaging { using System.ComponentModel; ///[ Serializable() ] public class MessageQueuePermissionEntry { private string label; private string machineName; private string path; private string category; private MessageQueuePermissionAccess permissionAccess; /// public MessageQueuePermissionEntry(MessageQueuePermissionAccess permissionAccess, string path) { if (path == null) throw new ArgumentNullException("path"); if (path != MessageQueuePermission.Any && !MessageQueue.ValidatePath(path, false)) throw new ArgumentException(Res.GetString(Res.PathSyntax)); this.path = path; this.permissionAccess = permissionAccess; } /// public MessageQueuePermissionEntry(MessageQueuePermissionAccess permissionAccess, string machineName, string label, string category) { if (machineName == null && label == null && category == null) throw new ArgumentNullException("machineName"); if (machineName != null && !SyntaxCheck.CheckMachineName(machineName)) throw new ArgumentException(Res.GetString(Res.InvalidParameter, "MachineName", machineName)); this.permissionAccess = permissionAccess; this.machineName = machineName; this.label = label; this.category = category; } /// public string Category { get { return this.category; } } /// public string Label { get { return this.label; } } /// public string MachineName { get { return this.machineName; } } /// public string Path { get { return this.path; } } /// public MessageQueuePermissionAccess PermissionAccess { get { return this.permissionAccess; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //---------------------------------------------------- // // Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Messaging { using System.ComponentModel; ///[ Serializable() ] public class MessageQueuePermissionEntry { private string label; private string machineName; private string path; private string category; private MessageQueuePermissionAccess permissionAccess; /// public MessageQueuePermissionEntry(MessageQueuePermissionAccess permissionAccess, string path) { if (path == null) throw new ArgumentNullException("path"); if (path != MessageQueuePermission.Any && !MessageQueue.ValidatePath(path, false)) throw new ArgumentException(Res.GetString(Res.PathSyntax)); this.path = path; this.permissionAccess = permissionAccess; } /// public MessageQueuePermissionEntry(MessageQueuePermissionAccess permissionAccess, string machineName, string label, string category) { if (machineName == null && label == null && category == null) throw new ArgumentNullException("machineName"); if (machineName != null && !SyntaxCheck.CheckMachineName(machineName)) throw new ArgumentException(Res.GetString(Res.InvalidParameter, "MachineName", machineName)); this.permissionAccess = permissionAccess; this.machineName = machineName; this.label = label; this.category = category; } /// public string Category { get { return this.category; } } /// public string Label { get { return this.label; } } /// public string MachineName { get { return this.machineName; } } /// public string Path { get { return this.path; } } /// public MessageQueuePermissionAccess PermissionAccess { get { return this.permissionAccess; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- DetailsViewCommandEventArgs.cs
- PersonalizationStateQuery.cs
- TemplateInstanceAttribute.cs
- ToolStripPanel.cs
- TraceContextRecord.cs
- WebDisplayNameAttribute.cs
- EUCJPEncoding.cs
- EncryptedData.cs
- LayoutDump.cs
- ConfigViewGenerator.cs
- MouseBinding.cs
- COAUTHIDENTITY.cs
- JpegBitmapDecoder.cs
- WebAdminConfigurationHelper.cs
- DecoratedNameAttribute.cs
- ErrorFormatterPage.cs
- AsyncWaitHandle.cs
- nulltextnavigator.cs
- base64Transforms.cs
- RegistrySecurity.cs
- GridViewColumnCollectionChangedEventArgs.cs
- OdbcConnectionOpen.cs
- Condition.cs
- XmlSchemaProviderAttribute.cs
- SessionStateItemCollection.cs
- BuildManager.cs
- ApplicationServiceHelper.cs
- BaseUriHelper.cs
- PersistenceProviderBehavior.cs
- DataGridViewRowStateChangedEventArgs.cs
- Transform.cs
- ErrorRuntimeConfig.cs
- XmlNavigatorStack.cs
- SqlTriggerAttribute.cs
- XsdDuration.cs
- IconBitmapDecoder.cs
- SqlParameterCollection.cs
- Composition.cs
- ExpandCollapseProviderWrapper.cs
- EdmType.cs
- SelectedGridItemChangedEvent.cs
- Opcode.cs
- PassportAuthenticationModule.cs
- FocusWithinProperty.cs
- XmlSchemaSimpleContentExtension.cs
- UserControlBuildProvider.cs
- OracleColumn.cs
- PathTooLongException.cs
- ArrayTypeMismatchException.cs
- FileLevelControlBuilderAttribute.cs
- StringArrayConverter.cs
- ScrollContentPresenter.cs
- WebPartConnectionsConfigureVerb.cs
- WebPartConnection.cs
- Serialization.cs
- SerializerProvider.cs
- LicenseManager.cs
- X509ChainPolicy.cs
- StringFunctions.cs
- SafeHandle.cs
- ScriptResourceDefinition.cs
- MbpInfo.cs
- DataGridDetailsPresenterAutomationPeer.cs
- RoleService.cs
- SecurityProtocolFactory.cs
- QueryConverter.cs
- InputLanguageCollection.cs
- EntityDataSourceQueryBuilder.cs
- ProgressBar.cs
- ObjectStateEntryBaseUpdatableDataRecord.cs
- Mappings.cs
- CompilerGlobalScopeAttribute.cs
- SimpleHandlerBuildProvider.cs
- List.cs
- ContextStaticAttribute.cs
- TaskFileService.cs
- PkcsMisc.cs
- SettingsPropertyNotFoundException.cs
- MailWriter.cs
- InvalidOperationException.cs
- ViewManager.cs
- Nodes.cs
- DataServiceRequestOfT.cs
- PasswordTextContainer.cs
- DocumentXPathNavigator.cs
- WindowClosedEventArgs.cs
- TimeSpanValidatorAttribute.cs
- TagMapInfo.cs
- CharEnumerator.cs
- ZoneButton.cs
- EntityDataSourceMemberPath.cs
- AutoGeneratedField.cs
- SqlWebEventProvider.cs
- SmiRecordBuffer.cs
- ToolStripStatusLabel.cs
- Header.cs
- AxisAngleRotation3D.cs
- TemplatedMailWebEventProvider.cs
- ProviderConnectionPoint.cs
- DataGridDefaultColumnWidthTypeConverter.cs