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
- EncoderNLS.cs
- VectorAnimationUsingKeyFrames.cs
- HMACSHA256.cs
- SafeReversePInvokeHandle.cs
- SpellerStatusTable.cs
- DropShadowEffect.cs
- VirtualPathProvider.cs
- WebControlsSection.cs
- DataGridViewRowConverter.cs
- PermissionSet.cs
- CategoryGridEntry.cs
- ColumnMap.cs
- GraphicsState.cs
- LinqDataSourceUpdateEventArgs.cs
- XmlILModule.cs
- OracleRowUpdatingEventArgs.cs
- baseaxisquery.cs
- NativeMethods.cs
- PlaceHolder.cs
- CodeAttributeArgument.cs
- ThreadStateException.cs
- CSharpCodeProvider.cs
- InvalidCommandTreeException.cs
- ReadWriteSpinLock.cs
- XmlDictionaryReader.cs
- ReferencedAssemblyResolver.cs
- RowBinding.cs
- CodeLabeledStatement.cs
- Clipboard.cs
- COM2TypeInfoProcessor.cs
- SerialStream.cs
- CompoundFileStorageReference.cs
- FieldMetadata.cs
- DateTimeParse.cs
- ChineseLunisolarCalendar.cs
- HtmlProps.cs
- CultureInfo.cs
- WebPartHeaderCloseVerb.cs
- ConnectionConsumerAttribute.cs
- Decorator.cs
- XmlNamedNodeMap.cs
- AutomationElementCollection.cs
- MimeWriter.cs
- LazyTextWriterCreator.cs
- AlphaSortedEnumConverter.cs
- DataContractSerializerServiceBehavior.cs
- Cursor.cs
- Expander.cs
- ChannelServices.cs
- RoutedEventHandlerInfo.cs
- CodePropertyReferenceExpression.cs
- DataException.cs
- ClearCollection.cs
- FileStream.cs
- ProfileInfo.cs
- EmptyStringExpandableObjectConverter.cs
- TransformedBitmap.cs
- DataGridViewDataErrorEventArgs.cs
- FontWeightConverter.cs
- MemoryMappedViewAccessor.cs
- GraphicsState.cs
- _ListenerAsyncResult.cs
- MessageUtil.cs
- XDeferredAxisSource.cs
- BitStack.cs
- Permission.cs
- CodeDOMProvider.cs
- XmlUtf8RawTextWriter.cs
- KeyedHashAlgorithm.cs
- DateTimeStorage.cs
- GridViewSelectEventArgs.cs
- InProcStateClientManager.cs
- TextSegment.cs
- ErrorHandler.cs
- TextInfo.cs
- DatePickerDateValidationErrorEventArgs.cs
- SqlClientMetaDataCollectionNames.cs
- DataGridViewUtilities.cs
- BuildProvidersCompiler.cs
- RuleSettingsCollection.cs
- MemoryMappedViewAccessor.cs
- InstanceNotReadyException.cs
- GroupItemAutomationPeer.cs
- BuilderPropertyEntry.cs
- CompModHelpers.cs
- RectangleF.cs
- CodeVariableReferenceExpression.cs
- MailDefinitionBodyFileNameEditor.cs
- ApplicationSecurityManager.cs
- AsymmetricSignatureFormatter.cs
- DynamicExpression.cs
- Transform3D.cs
- WebPartManager.cs
- TextSelectionHighlightLayer.cs
- DbModificationClause.cs
- Nullable.cs
- TextClipboardData.cs
- BypassElementCollection.cs
- FormsAuthenticationEventArgs.cs
- TemplateNameScope.cs