Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / clr / src / BCL / System / Runtime / InteropServices / ExtensibleClassFactory.cs / 1305376 / ExtensibleClassFactory.cs
// ==++==
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
// ==--==
/*==============================================================================
**
** Class: ExtensibleClassFactory
**
**
** Purpose: Methods used to customize the creation of managed objects that
** extend from unmanaged objects.
**
**
=============================================================================*/
namespace System.Runtime.InteropServices {
using System.Runtime.InteropServices;
using System.Runtime.Remoting;
using System.Runtime.CompilerServices;
using System.Runtime.Versioning;
using System;
[System.Runtime.InteropServices.ComVisible(true)]
public sealed class ExtensibleClassFactory
{
// Prevent instantiation.
private ExtensibleClassFactory() {}
// Register a delegate that will be called whenever an instance of a managed
// type that extends from an unmanaged type needs to allocate the aggregated
// unmanaged object. This delegate is expected to allocate and aggregate the
// unmanaged object and is called in place of a CoCreateInstance. This
// routine must be called in the context of the static initializer for the
// class for which the callbacks will be made.
// It is not legal to register this callback from a class that has any
// parents that have already registered a callback.
[System.Security.SecuritySafeCritical] // auto-generated
[ResourceExposure(ResourceScope.None)]
[MethodImplAttribute(MethodImplOptions.InternalCall)]
public static extern void RegisterObjectCreationCallback(ObjectCreationDelegate callback);
}
}
// 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
- MenuAutomationPeer.cs
- EncoderFallback.cs
- IntranetCredentialPolicy.cs
- SmiRecordBuffer.cs
- Control.cs
- PersistStreamTypeWrapper.cs
- TagMapInfo.cs
- PEFileReader.cs
- EventLogInformation.cs
- SystemUnicastIPAddressInformation.cs
- WmlLinkAdapter.cs
- Track.cs
- MetadataPropertyAttribute.cs
- ModuleElement.cs
- DataGridLinkButton.cs
- QuotedPrintableStream.cs
- LocalizationComments.cs
- AnnotationComponentManager.cs
- InfocardExtendedInformationCollection.cs
- RowUpdatingEventArgs.cs
- WorkflowPageSetupDialog.cs
- AssemblyName.cs
- PageParser.cs
- ZoneMembershipCondition.cs
- CatalogPartCollection.cs
- SplineQuaternionKeyFrame.cs
- ClaimTypeRequirement.cs
- HttpProtocolReflector.cs
- AuthenticatingEventArgs.cs
- Stack.cs
- XomlCompilerParameters.cs
- FixUp.cs
- SQLInt32.cs
- ScaleTransform3D.cs
- DynamicEntity.cs
- EventSetter.cs
- PointKeyFrameCollection.cs
- TimeStampChecker.cs
- MetadataSource.cs
- AuthorizationRule.cs
- BordersPage.cs
- DataRelationPropertyDescriptor.cs
- Wizard.cs
- ParseNumbers.cs
- Menu.cs
- Track.cs
- Baml6Assembly.cs
- RawStylusInputReport.cs
- Utils.cs
- FreezableOperations.cs
- ConfigurationHandlersInstallComponent.cs
- EventHandlerList.cs
- Positioning.cs
- TouchesCapturedWithinProperty.cs
- MemberNameValidator.cs
- QilValidationVisitor.cs
- AuthorizationRule.cs
- HandlerFactoryCache.cs
- FormsAuthenticationEventArgs.cs
- CompositionAdorner.cs
- SimpleApplicationHost.cs
- TemplateInstanceAttribute.cs
- Visual.cs
- ArgumentReference.cs
- IApplicationTrustManager.cs
- SelfIssuedSamlTokenFactory.cs
- SqlDataSourceQuery.cs
- NumericExpr.cs
- WebConvert.cs
- LogicalExpr.cs
- TreeViewBindingsEditor.cs
- AdornerLayer.cs
- FtpWebResponse.cs
- __Error.cs
- PagerSettings.cs
- ScalarConstant.cs
- DbParameterCollection.cs
- MessagePartDescription.cs
- InternalException.cs
- ListViewItemSelectionChangedEvent.cs
- DefaultParameterValueAttribute.cs
- NumericUpDownAcceleration.cs
- Scene3D.cs
- GenericUriParser.cs
- PerformanceCounters.cs
- DeferredElementTreeState.cs
- WebPartMovingEventArgs.cs
- DataBoundControlDesigner.cs
- TypeNameConverter.cs
- Substitution.cs
- BinaryParser.cs
- ProtocolException.cs
- SmtpFailedRecipientException.cs
- PeerPresenceInfo.cs
- ValidatorCompatibilityHelper.cs
- IdentityModelDictionary.cs
- UnitControl.cs
- assertwrapper.cs
- ToolStripPanelRow.cs
- HttpApplication.cs