Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / ndp / clr / src / BCL / System / Runtime / InteropServices / ExtensibleClassFactory.cs / 1 / 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; [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. [MethodImplAttribute(MethodImplOptions.InternalCall)] public static extern void RegisterObjectCreationCallback(ObjectCreationDelegate callback); } }
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- FormsAuthenticationCredentials.cs
- CanonicalizationDriver.cs
- PageRequestManager.cs
- GuidelineCollection.cs
- MergePropertyDescriptor.cs
- IIS7UserPrincipal.cs
- CLRBindingWorker.cs
- ColumnResizeAdorner.cs
- WaitForChangedResult.cs
- FillErrorEventArgs.cs
- OracleTimeSpan.cs
- TraceEventCache.cs
- SystemParameters.cs
- TransactionManager.cs
- columnmapkeybuilder.cs
- BitmapEffectGroup.cs
- DataGridViewMethods.cs
- RemoveStoryboard.cs
- RootBrowserWindowAutomationPeer.cs
- Mutex.cs
- TypeInfo.cs
- DataRowCollection.cs
- ComboBoxAutomationPeer.cs
- StrongNameKeyPair.cs
- ScrollItemProviderWrapper.cs
- bidPrivateBase.cs
- EdmToObjectNamespaceMap.cs
- WebServiceTypeData.cs
- CodeAttributeArgument.cs
- FileCodeGroup.cs
- Ref.cs
- DataGridBoolColumn.cs
- CodeActivityMetadata.cs
- UnsafeNativeMethods.cs
- EnterpriseServicesHelper.cs
- TrailingSpaceComparer.cs
- Header.cs
- ButtonBase.cs
- PointConverter.cs
- DoubleCollectionValueSerializer.cs
- ButtonBase.cs
- PenLineJoinValidation.cs
- COSERVERINFO.cs
- ZoneButton.cs
- StructuredTypeInfo.cs
- HashCoreRequest.cs
- ScriptResourceHandler.cs
- CacheMemory.cs
- ToolStripSeparatorRenderEventArgs.cs
- ProcessManager.cs
- AggregationMinMaxHelpers.cs
- EqualityComparer.cs
- TemplatedMailWebEventProvider.cs
- SettingsPropertyValue.cs
- LinqDataSourceStatusEventArgs.cs
- HTMLTagNameToTypeMapper.cs
- ButtonFlatAdapter.cs
- CodeSubDirectory.cs
- KnownTypesHelper.cs
- DynamicRouteExpression.cs
- Hyperlink.cs
- Metadata.cs
- iisPickupDirectory.cs
- MessageQueue.cs
- TextChangedEventArgs.cs
- sqlser.cs
- CryptoStream.cs
- PermissionAttributes.cs
- DataAdapter.cs
- SpeechRecognizer.cs
- Subtree.cs
- ConstantCheck.cs
- PropertyEmitter.cs
- TabControl.cs
- ConnectionConsumerAttribute.cs
- TableLayout.cs
- MetadataArtifactLoaderXmlReaderWrapper.cs
- EnumConverter.cs
- BaseTreeIterator.cs
- WindowPatternIdentifiers.cs
- SqlAliaser.cs
- RegexInterpreter.cs
- SizeAnimationUsingKeyFrames.cs
- ResourceAssociationType.cs
- ZoomComboBox.cs
- HtmlWindowCollection.cs
- TabControl.cs
- SqlDelegatedTransaction.cs
- WebControlParameterProxy.cs
- Scene3D.cs
- SystemIcons.cs
- Operand.cs
- TypefaceCollection.cs
- LambdaCompiler.Generated.cs
- BinHexEncoder.cs
- ILGenerator.cs
- Converter.cs
- SemaphoreSecurity.cs
- LinkedDataMemberFieldEditor.cs
- ObjectDataSourceStatusEventArgs.cs