Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / ndp / fx / src / CompMod / System / ComponentModel / Design / Serialization / ResolveNameEventArgs.cs / 1 / ResolveNameEventArgs.cs
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------------
namespace System.ComponentModel.Design.Serialization {
using System;
using System.Security.Permissions;
///
/// EventArgs for the ResolveNameEventHandler. This event is used
/// by the serialization process to match a name to an object
/// instance.
///
[HostProtection(SharedState = true)]
[System.Security.Permissions.PermissionSetAttribute(System.Security.Permissions.SecurityAction.InheritanceDemand, Name = "FullTrust")]
[System.Security.Permissions.PermissionSetAttribute(System.Security.Permissions.SecurityAction.LinkDemand, Name="FullTrust")]
public class ResolveNameEventArgs : EventArgs {
private string name;
private object value;
///
/// Creates a new resolve name event args object.
///
public ResolveNameEventArgs(string name) {
this.name = name;
this.value = null;
}
///
/// The name of the object that needs to be resolved.
///
public string Name {
get {
return name;
}
}
///
/// The object that matches the name.
///
public object Value {
get {
return value;
}
set {
this.value = value;
}
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------------
namespace System.ComponentModel.Design.Serialization {
using System;
using System.Security.Permissions;
///
/// EventArgs for the ResolveNameEventHandler. This event is used
/// by the serialization process to match a name to an object
/// instance.
///
[HostProtection(SharedState = true)]
[System.Security.Permissions.PermissionSetAttribute(System.Security.Permissions.SecurityAction.InheritanceDemand, Name = "FullTrust")]
[System.Security.Permissions.PermissionSetAttribute(System.Security.Permissions.SecurityAction.LinkDemand, Name="FullTrust")]
public class ResolveNameEventArgs : EventArgs {
private string name;
private object value;
///
/// Creates a new resolve name event args object.
///
public ResolveNameEventArgs(string name) {
this.name = name;
this.value = null;
}
///
/// The name of the object that needs to be resolved.
///
public string Name {
get {
return name;
}
}
///
/// The object that matches the name.
///
public object Value {
get {
return value;
}
set {
this.value = value;
}
}
}
}
// 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
- IdleTimeoutMonitor.cs
- DNS.cs
- DateTimeUtil.cs
- ClientConvert.cs
- ParameterToken.cs
- MenuRenderer.cs
- LocatorBase.cs
- CompModSwitches.cs
- OuterGlowBitmapEffect.cs
- WebPermission.cs
- DataGridItem.cs
- TemplateField.cs
- PassportAuthentication.cs
- DrawingContextWalker.cs
- TextAutomationPeer.cs
- MetabaseServerConfig.cs
- exports.cs
- BuildProvidersCompiler.cs
- XmlSchemaAttributeGroup.cs
- HttpCacheVary.cs
- ResXResourceWriter.cs
- Region.cs
- LicenseProviderAttribute.cs
- XmlChoiceIdentifierAttribute.cs
- ClientTarget.cs
- BinaryFormatterWriter.cs
- ResourceExpressionBuilder.cs
- BasicHttpBindingElement.cs
- CanExecuteRoutedEventArgs.cs
- ValueChangedEventManager.cs
- AssemblyCache.cs
- StylusPointDescription.cs
- PartialList.cs
- GlyphingCache.cs
- WebAdminConfigurationHelper.cs
- RequestNavigateEventArgs.cs
- UnknownExceptionActionHelper.cs
- TransactionBridge.cs
- LineBreak.cs
- Size3D.cs
- GacUtil.cs
- DisplayNameAttribute.cs
- Paragraph.cs
- TypeConstant.cs
- SQLMoney.cs
- SessionSwitchEventArgs.cs
- CheckBoxList.cs
- RpcCryptoRequest.cs
- FragmentQuery.cs
- ListManagerBindingsCollection.cs
- Schema.cs
- DataSourceHelper.cs
- RegexGroupCollection.cs
- WebUtil.cs
- SHA512.cs
- Hash.cs
- BindingElementCollection.cs
- HostingEnvironmentSection.cs
- XhtmlBasicValidationSummaryAdapter.cs
- DragDeltaEventArgs.cs
- HwndStylusInputProvider.cs
- InputGestureCollection.cs
- Grant.cs
- HTMLTagNameToTypeMapper.cs
- UrlPropertyAttribute.cs
- WebPartManager.cs
- ClientScriptManager.cs
- DiscoveryProxy.cs
- CreateUserErrorEventArgs.cs
- ActivityCodeDomReferenceService.cs
- DataGridViewRowHeightInfoPushedEventArgs.cs
- DataSourceProvider.cs
- XmlWriterTraceListener.cs
- DataAdapter.cs
- RoutedCommand.cs
- LinqToSqlWrapper.cs
- ToolboxItemWrapper.cs
- WebBrowsableAttribute.cs
- localization.cs
- HostDesigntimeLicenseContext.cs
- SharedPersonalizationStateInfo.cs
- XmlSchemaComplexContent.cs
- MetaForeignKeyColumn.cs
- AutoResetEvent.cs
- IssuanceLicense.cs
- HtmlInputReset.cs
- AccessedThroughPropertyAttribute.cs
- VarRefManager.cs
- MarkupProperty.cs
- GridViewRowPresenterBase.cs
- EditBehavior.cs
- EventBuilder.cs
- PersistenceTypeAttribute.cs
- ObjectFactoryCodeDomTreeGenerator.cs
- AstTree.cs
- FormatterServices.cs
- ResourceReader.cs
- SafeThemeHandle.cs
- GridErrorDlg.cs
- WebFormDesignerActionService.cs