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
- WebPartVerb.cs
- PersistChildrenAttribute.cs
- storepermission.cs
- Semaphore.cs
- SafeFindHandle.cs
- TableLayoutColumnStyleCollection.cs
- X509Certificate.cs
- SerializationSectionGroup.cs
- ClonableStack.cs
- AlignmentYValidation.cs
- CqlQuery.cs
- RangeValidator.cs
- NativeMethods.cs
- CompilerError.cs
- InkPresenterAutomationPeer.cs
- AddInContractAttribute.cs
- PolicyManager.cs
- VSWCFServiceContractGenerator.cs
- ExclusiveHandle.cs
- PowerModeChangedEventArgs.cs
- ParameterCollectionEditorForm.cs
- PageAdapter.cs
- ScriptIgnoreAttribute.cs
- TypeConstant.cs
- SerializationStore.cs
- GeometryValueSerializer.cs
- SqlUtil.cs
- WebBodyFormatMessageProperty.cs
- InvalidPrinterException.cs
- StatusBarItemAutomationPeer.cs
- AsynchronousChannel.cs
- ClusterRegistryConfigurationProvider.cs
- DesignerPerfEventProvider.cs
- RunWorkerCompletedEventArgs.cs
- DataGridViewImageColumn.cs
- OleStrCAMarshaler.cs
- WebConfigurationFileMap.cs
- ListViewInsertEventArgs.cs
- odbcmetadatafactory.cs
- GradientStop.cs
- ListViewInsertedEventArgs.cs
- ExpressionEditorAttribute.cs
- OracleSqlParser.cs
- commandenforcer.cs
- EnvironmentPermission.cs
- EntityContainerAssociationSet.cs
- CacheEntry.cs
- WeakEventTable.cs
- DbProviderSpecificTypePropertyAttribute.cs
- QilFactory.cs
- ResXBuildProvider.cs
- TransactionProtocol.cs
- SelectionProviderWrapper.cs
- EventWaitHandle.cs
- FlowSwitchLink.cs
- EventEntry.cs
- CodeSubDirectory.cs
- HtmlInputRadioButton.cs
- DrawingContextDrawingContextWalker.cs
- MethodBuilder.cs
- PrintingPermissionAttribute.cs
- PasswordDeriveBytes.cs
- FileCodeGroup.cs
- HuffmanTree.cs
- ActiveXContainer.cs
- OdbcPermission.cs
- VolatileEnlistmentState.cs
- ActiveXHelper.cs
- XmlDataImplementation.cs
- ModelTreeEnumerator.cs
- ToolBarButtonClickEvent.cs
- UInt16Storage.cs
- DelegateSerializationHolder.cs
- RuntimeUtils.cs
- ListDictionaryInternal.cs
- RTLAwareMessageBox.cs
- CoTaskMemHandle.cs
- EventArgs.cs
- DataBindingCollectionEditor.cs
- QilTargetType.cs
- SoapFault.cs
- SerialPort.cs
- RadioButtonStandardAdapter.cs
- DbFunctionCommandTree.cs
- StyleCollection.cs
- WindowManager.cs
- Size.cs
- TabControlToolboxItem.cs
- Expander.cs
- SchemaImporterExtensionElementCollection.cs
- BrowserCapabilitiesFactoryBase.cs
- DataIdProcessor.cs
- DataGridDefaultColumnWidthTypeConverter.cs
- WebPartDisplayModeCollection.cs
- DynamicValidator.cs
- SetIndexBinder.cs
- ForAllOperator.cs
- LocalFileSettingsProvider.cs
- BulletedListEventArgs.cs
- OdbcConnectionOpen.cs