IExtensibleObject<T> Interface
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Enable an object to participate in custom behavior, such as registering for events, or watching state transitions.
generic <typename T>
where T : IExtensibleObject<T>public interface class IExtensibleObject
public interface IExtensibleObject<T> where T : IExtensibleObject<T>
type IExtensibleObject<'T (requires 'T :> IExtensibleObject<'T>)> = interface
Public Interface IExtensibleObject(Of T)
Type Parameters
- T
The type of the extension class.
- Derived
Remarks
Implement IExtensibleObject<T> to enable aggregation of extensions.
For example, if you are implementing a TreeNode
class and want to allow external code to add annotations and methods to some instances of TreeNode
, you can have TreeNode
implement IExtensibleObject<TreeNode>
. This enables code that uses TreeNode
to add objects that implement IExtensibleObject<TreeNode>
to the Extensions collection.
There are four extensible objects in Windows Communication Foundation (WCF):
For a discussion about how to create extension to work with these objects, see Extensible Objects.
Properties
Extensions |
Gets a collection of extension objects for this extensible object. |
Applies to
.NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기