Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / ndp / fx / src / xsp / System / Web / UI / WebParts / WebPartAuthorizationEventArgs.cs / 1 / WebPartAuthorizationEventArgs.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.UI.WebControls.WebParts { using System; using System.Security.Permissions; [AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)] [AspNetHostingPermission(SecurityAction.InheritanceDemand, Level=AspNetHostingPermissionLevel.Minimal)] public class WebPartAuthorizationEventArgs : EventArgs { private Type _type; private string _path; private string _authorizationFilter; private bool _isShared; private bool _isAuthorized; public WebPartAuthorizationEventArgs(Type type, string path, string authorizationFilter, bool isShared) { _type = type; _path = path; _authorizationFilter = authorizationFilter; _isShared = isShared; _isAuthorized = true; } public string AuthorizationFilter { get { return _authorizationFilter; } } public bool IsAuthorized { get { return _isAuthorized; } set { _isAuthorized = value; } } public bool IsShared { get { return _isShared; } } public string Path { get { return _path; } } public Type Type { get { return _type; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.UI.WebControls.WebParts { using System; using System.Security.Permissions; [AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)] [AspNetHostingPermission(SecurityAction.InheritanceDemand, Level=AspNetHostingPermissionLevel.Minimal)] public class WebPartAuthorizationEventArgs : EventArgs { private Type _type; private string _path; private string _authorizationFilter; private bool _isShared; private bool _isAuthorized; public WebPartAuthorizationEventArgs(Type type, string path, string authorizationFilter, bool isShared) { _type = type; _path = path; _authorizationFilter = authorizationFilter; _isShared = isShared; _isAuthorized = true; } public string AuthorizationFilter { get { return _authorizationFilter; } } public bool IsAuthorized { get { return _isAuthorized; } set { _isAuthorized = value; } } public bool IsShared { get { return _isShared; } } public string Path { get { return _path; } } public Type Type { get { return _type; } } } } // 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
- ParentUndoUnit.cs
- SQLDouble.cs
- RandomNumberGenerator.cs
- ActivityCodeGenerator.cs
- DisplayInformation.cs
- MachineKeyConverter.cs
- SQLInt32Storage.cs
- Processor.cs
- WebServiceFault.cs
- EventData.cs
- List.cs
- PageCopyCount.cs
- ThicknessAnimation.cs
- CaseExpr.cs
- ExpressionBinding.cs
- SchemaImporterExtensionsSection.cs
- LayoutTable.cs
- DataRelation.cs
- CodeFieldReferenceExpression.cs
- DataGrid.cs
- Rule.cs
- NodeInfo.cs
- HelpInfo.cs
- SelectorAutomationPeer.cs
- QilTypeChecker.cs
- Accessors.cs
- OutputCacheProfileCollection.cs
- CompressedStack.cs
- Operand.cs
- ContainerControl.cs
- ContractListAdapter.cs
- EventsTab.cs
- XmlTypeAttribute.cs
- autovalidator.cs
- NativeBuffer.cs
- BamlReader.cs
- LinqDataSourceView.cs
- ComponentResourceManager.cs
- SQlBooleanStorage.cs
- SourceCollection.cs
- OutputCacheSection.cs
- AspNetSynchronizationContext.cs
- ConditionBrowserDialog.cs
- Int32Collection.cs
- TextUtf8RawTextWriter.cs
- WebPartEditorApplyVerb.cs
- ServicePoint.cs
- IriParsingElement.cs
- FacetEnabledSchemaElement.cs
- TextModifierScope.cs
- ConnectionsZone.cs
- TargetInvocationException.cs
- StringAnimationUsingKeyFrames.cs
- UTF32Encoding.cs
- SqlOuterApplyReducer.cs
- PLINQETWProvider.cs
- XmlSchemaChoice.cs
- PeerInvitationResponse.cs
- EnvelopedPkcs7.cs
- BoundColumn.cs
- TextOnlyOutput.cs
- EffectiveValueEntry.cs
- WebBrowserProgressChangedEventHandler.cs
- DrawToolTipEventArgs.cs
- TransportContext.cs
- SmtpNtlmAuthenticationModule.cs
- StringExpressionSet.cs
- SortedDictionary.cs
- WebBrowserNavigatingEventHandler.cs
- ToolboxComponentsCreatedEventArgs.cs
- _CacheStreams.cs
- EncoderExceptionFallback.cs
- IfJoinedCondition.cs
- MultitargetUtil.cs
- TreeWalker.cs
- MetaDataInfo.cs
- GlyphManager.cs
- SBCSCodePageEncoding.cs
- TemplateModeChangedEventArgs.cs
- SqlProvider.cs
- MetadataSource.cs
- ValidatorCollection.cs
- DomNameTable.cs
- TypeInitializationException.cs
- XAMLParseException.cs
- CaretElement.cs
- CssClassPropertyAttribute.cs
- FlowDocumentFormatter.cs
- ConfigXmlText.cs
- ValueType.cs
- ArrayList.cs
- HyperLinkColumn.cs
- MetabaseServerConfig.cs
- HotSpot.cs
- CheckBox.cs
- DispatcherExceptionFilterEventArgs.cs
- XPathScanner.cs
- BindingsCollection.cs
- ProgressBar.cs
- AccessDataSourceDesigner.cs