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
- SystemThemeKey.cs
- SqlIdentifier.cs
- ViewRendering.cs
- VisualTreeHelper.cs
- HMACSHA256.cs
- _HelperAsyncResults.cs
- ToolStripActionList.cs
- FontStretchConverter.cs
- DataGridViewCellParsingEventArgs.cs
- EdmSchemaAttribute.cs
- Clock.cs
- NonBatchDirectoryCompiler.cs
- UnsafeNativeMethods.cs
- PeerNameRegistration.cs
- recordstate.cs
- FormViewDeletedEventArgs.cs
- UIElement3DAutomationPeer.cs
- smtppermission.cs
- ChooseAction.cs
- cookiecollection.cs
- CodeTypeParameterCollection.cs
- WebPartEditVerb.cs
- ConnectorEditor.cs
- AutoCompleteStringCollection.cs
- Utils.cs
- DeclaredTypeElement.cs
- CompiledAction.cs
- XamlBuildTaskServices.cs
- Viewport2DVisual3D.cs
- CharStorage.cs
- ISessionStateStore.cs
- SystemIPv6InterfaceProperties.cs
- FormatConvertedBitmap.cs
- ExpressionQuoter.cs
- Convert.cs
- AnnotationComponentManager.cs
- DataGridParentRows.cs
- AppliedDeviceFiltersEditor.cs
- MarkupExtensionReturnTypeAttribute.cs
- SplashScreen.cs
- AuthenticationService.cs
- TypedCompletedAsyncResult.cs
- OnOperation.cs
- DialogResultConverter.cs
- HttpApplication.cs
- DataGridViewCellCollection.cs
- ParallelDesigner.xaml.cs
- VerificationAttribute.cs
- panel.cs
- BuildProviderAppliesToAttribute.cs
- HttpCookieCollection.cs
- SqlClientPermission.cs
- EventListenerClientSide.cs
- ManagementObjectSearcher.cs
- GroupByQueryOperator.cs
- InsufficientExecutionStackException.cs
- Oid.cs
- FormViewDeleteEventArgs.cs
- COM2ExtendedUITypeEditor.cs
- StrokeDescriptor.cs
- CommonGetThemePartSize.cs
- WindowsStartMenu.cs
- ContourSegment.cs
- Error.cs
- BackgroundWorker.cs
- Converter.cs
- Tag.cs
- Resources.Designer.cs
- ApplicationException.cs
- OperationResponse.cs
- GeneralTransform2DTo3DTo2D.cs
- PopupRootAutomationPeer.cs
- WebResourceUtil.cs
- TemplateBuilder.cs
- BeginStoryboard.cs
- ButtonBaseAutomationPeer.cs
- SettingsPropertyNotFoundException.cs
- PowerStatus.cs
- XmlSerializerAssemblyAttribute.cs
- WebPartConnectionsCancelVerb.cs
- PageThemeCodeDomTreeGenerator.cs
- InputLanguageProfileNotifySink.cs
- Formatter.cs
- AssemblyContextControlItem.cs
- CompoundFileDeflateTransform.cs
- SqlMetaData.cs
- PropertyGeneratedEventArgs.cs
- InboundActivityHelper.cs
- TextLineBreak.cs
- EntityCommandDefinition.cs
- EventToken.cs
- IIS7WorkerRequest.cs
- ListViewPagedDataSource.cs
- WebPartEditorApplyVerb.cs
- EntityProviderFactory.cs
- DescendantQuery.cs
- WindowsAuthenticationEventArgs.cs
- RootBuilder.cs
- ConfigXmlText.cs
- XhtmlBasicControlAdapter.cs