Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / ndp / fx / src / CompMod / System / CodeDOM / CodeRemoveEventStatement.cs / 1 / CodeRemoveEventStatement.cs
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------------
namespace System.CodeDom {
using System.Diagnostics;
using System;
using Microsoft.Win32;
using System.Collections;
using System.Runtime.InteropServices;
///
///
/// Represents a event detach statement.
///
///
[
ClassInterface(ClassInterfaceType.AutoDispatch),
ComVisible(true),
Serializable,
]
public class CodeRemoveEventStatement : CodeStatement {
private CodeEventReferenceExpression eventRef;
private CodeExpression listener;
///
///
/// Initializes a new instance of .
///
///
public CodeRemoveEventStatement() {
}
///
///
/// Initializes a new instance of the class using the specified arguments.
///
///
public CodeRemoveEventStatement(CodeEventReferenceExpression eventRef, CodeExpression listener) {
this.eventRef = eventRef;
this.listener = listener;
}
///
/// [To be supplied.]
///
public CodeRemoveEventStatement(CodeExpression targetObject, string eventName, CodeExpression listener) {
this.eventRef = new CodeEventReferenceExpression(targetObject, eventName);
this.listener = listener;
}
///
/// [To be supplied.]
///
public CodeEventReferenceExpression Event{
get {
if (eventRef == null) {
eventRef = new CodeEventReferenceExpression();
}
return eventRef;
}
set {
eventRef = value;
}
}
///
///
/// The listener.
///
///
public CodeExpression Listener {
get {
return listener;
}
set {
listener = value;
}
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------------
namespace System.CodeDom {
using System.Diagnostics;
using System;
using Microsoft.Win32;
using System.Collections;
using System.Runtime.InteropServices;
///
///
/// Represents a event detach statement.
///
///
[
ClassInterface(ClassInterfaceType.AutoDispatch),
ComVisible(true),
Serializable,
]
public class CodeRemoveEventStatement : CodeStatement {
private CodeEventReferenceExpression eventRef;
private CodeExpression listener;
///
///
/// Initializes a new instance of .
///
///
public CodeRemoveEventStatement() {
}
///
///
/// Initializes a new instance of the class using the specified arguments.
///
///
public CodeRemoveEventStatement(CodeEventReferenceExpression eventRef, CodeExpression listener) {
this.eventRef = eventRef;
this.listener = listener;
}
///
/// [To be supplied.]
///
public CodeRemoveEventStatement(CodeExpression targetObject, string eventName, CodeExpression listener) {
this.eventRef = new CodeEventReferenceExpression(targetObject, eventName);
this.listener = listener;
}
///
/// [To be supplied.]
///
public CodeEventReferenceExpression Event{
get {
if (eventRef == null) {
eventRef = new CodeEventReferenceExpression();
}
return eventRef;
}
set {
eventRef = value;
}
}
///
///
/// The listener.
///
///
public CodeExpression Listener {
get {
return listener;
}
set {
listener = 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
- InternalDuplexChannelFactory.cs
- DistinctQueryOperator.cs
- ArglessEventHandlerProxy.cs
- SessionStateSection.cs
- RSAPKCS1KeyExchangeFormatter.cs
- MsmqBindingBase.cs
- TraceListeners.cs
- MD5CryptoServiceProvider.cs
- SynchronousChannel.cs
- StoreItemCollection.Loader.cs
- Canvas.cs
- ExpressionBuilderCollection.cs
- IgnoreSectionHandler.cs
- EtwTrace.cs
- CompModSwitches.cs
- CapabilitiesAssignment.cs
- SiteMapNodeCollection.cs
- SettingsPropertyValueCollection.cs
- UrlMappingsSection.cs
- EventPrivateKey.cs
- SHA1CryptoServiceProvider.cs
- DocumentAutomationPeer.cs
- BitmapFrame.cs
- DataProtectionSecurityStateEncoder.cs
- CodeAttributeDeclaration.cs
- ProtectedConfigurationSection.cs
- EntityDataSourceWrapper.cs
- InfocardInteractiveChannelInitializer.cs
- InputScopeNameConverter.cs
- OwnerDrawPropertyBag.cs
- HuffCodec.cs
- EastAsianLunisolarCalendar.cs
- ArcSegment.cs
- SecurityHelper.cs
- DataGridViewRowPrePaintEventArgs.cs
- NameScopePropertyAttribute.cs
- WebDescriptionAttribute.cs
- PartBasedPackageProperties.cs
- SimpleHandlerBuildProvider.cs
- PrintingPermissionAttribute.cs
- SqlComparer.cs
- DataBindingExpressionBuilder.cs
- SafePEFileHandle.cs
- SerializerWriterEventHandlers.cs
- CellParaClient.cs
- SpinWait.cs
- DataListItemCollection.cs
- SecuritySessionSecurityTokenProvider.cs
- RSAPKCS1KeyExchangeDeformatter.cs
- ForwardPositionQuery.cs
- RelationshipEndMember.cs
- PackageStore.cs
- ColorContextHelper.cs
- DSASignatureDeformatter.cs
- ClassicBorderDecorator.cs
- MetadataArtifactLoaderFile.cs
- MenuCommands.cs
- XmlSchemaSimpleTypeRestriction.cs
- ZipIOExtraFieldZip64Element.cs
- MemberAccessException.cs
- ControlUtil.cs
- DataControlImageButton.cs
- Baml2006ReaderContext.cs
- ZipIOCentralDirectoryFileHeader.cs
- VisualStateChangedEventArgs.cs
- SchemaCollectionCompiler.cs
- bidPrivateBase.cs
- TraversalRequest.cs
- PointCollection.cs
- Evaluator.cs
- ModelTreeEnumerator.cs
- XmlSchemaComplexContent.cs
- ToolStripOverflow.cs
- BaseTemplateBuildProvider.cs
- XPathPatternParser.cs
- WebHttpSecurity.cs
- EncryptedPackage.cs
- dataobject.cs
- Activator.cs
- CompositeControl.cs
- MenuItem.cs
- HttpCookiesSection.cs
- HtmlTableCellCollection.cs
- StateFinalizationActivity.cs
- TreeNodeStyleCollection.cs
- documentsequencetextpointer.cs
- SafeNativeMemoryHandle.cs
- ECDiffieHellmanCngPublicKey.cs
- BitmapCacheBrush.cs
- DbCommandDefinition.cs
- ADRoleFactory.cs
- ObjectStateEntryDbDataRecord.cs
- DataGridViewRowHeightInfoNeededEventArgs.cs
- SequentialOutput.cs
- HtmlInputReset.cs
- CodeTypeParameter.cs
- ParentUndoUnit.cs
- StyleSheetDesigner.cs
- GridViewUpdateEventArgs.cs
- RTTrackingProfile.cs