Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- PropertyPushdownHelper.cs
- RequiredFieldValidator.cs
- RuleInfoComparer.cs
- SortQuery.cs
- DecimalKeyFrameCollection.cs
- DataGridRow.cs
- SortFieldComparer.cs
- SpellerHighlightLayer.cs
- XmlChildEnumerator.cs
- DayRenderEvent.cs
- StringExpressionSet.cs
- ProgressBarRenderer.cs
- PropertyExpression.cs
- SpecialTypeDataContract.cs
- ExpandableObjectConverter.cs
- FileDialog_Vista_Interop.cs
- DbProviderConfigurationHandler.cs
- PinnedBufferMemoryStream.cs
- ImageUrlEditor.cs
- Path.cs
- SatelliteContractVersionAttribute.cs
- BinaryFormatter.cs
- ValueCollectionParameterReader.cs
- LinearKeyFrames.cs
- DiscoveryExceptionDictionary.cs
- FaultContext.cs
- OleDbParameter.cs
- ComponentRenameEvent.cs
- CollectionViewGroupInternal.cs
- Tablet.cs
- ObjectDataSource.cs
- XmlSchemaInclude.cs
- ChangeTracker.cs
- LinqDataSource.cs
- HWStack.cs
- DataRowComparer.cs
- connectionpool.cs
- FileSecurity.cs
- DependencyProperty.cs
- ResourcePool.cs
- SubclassTypeValidator.cs
- PbrsForward.cs
- Stylus.cs
- TextTrailingCharacterEllipsis.cs
- CustomError.cs
- ResolveMatchesMessageCD1.cs
- Brush.cs
- RelationshipType.cs
- TypographyProperties.cs
- MessageDroppedTraceRecord.cs
- ProxyElement.cs
- KeyManager.cs
- DeviceContext2.cs
- EncryptedKey.cs
- RecognizerBase.cs
- ScriptMethodAttribute.cs
- UInt16.cs
- QueryAccessibilityHelpEvent.cs
- FrugalMap.cs
- AssemblyCache.cs
- ParserContext.cs
- SqlStatistics.cs
- GraphicsPathIterator.cs
- HitTestWithPointDrawingContextWalker.cs
- MILUtilities.cs
- CqlIdentifiers.cs
- ToolStripCustomTypeDescriptor.cs
- RuntimeEnvironment.cs
- XmlSchemaAnyAttribute.cs
- ContextMenuStrip.cs
- BamlRecordHelper.cs
- OracleDataAdapter.cs
- WebPartConnectionsDisconnectVerb.cs
- SelectionListComponentEditor.cs
- DataPagerFieldItem.cs
- FileDialog.cs
- SQLBinary.cs
- HMACRIPEMD160.cs
- DocumentPageViewAutomationPeer.cs
- DataColumn.cs
- MetaChildrenColumn.cs
- CustomAssemblyResolver.cs
- Error.cs
- WindowsScroll.cs
- ISessionStateStore.cs
- DynamicActivity.cs
- SecurityMessageProperty.cs
- UTF7Encoding.cs
- QueryRewriter.cs
- StringValueConverter.cs
- OleDbPropertySetGuid.cs
- XslNumber.cs
- TemplateNameScope.cs
- BitmapImage.cs
- TrackingStringDictionary.cs
- BinaryObjectReader.cs
- SemaphoreSecurity.cs
- Parameter.cs
- HideDisabledControlAdapter.cs
- RepeatBehaviorConverter.cs