Used to specify each type of result; for functions having various result types.
public ref class ResultTypeAttribute sealed : Attribute
[System.AttributeUsage(System.AttributeTargets.Method, AllowMultiple=true)]
public sealed class ResultTypeAttribute : Attribute
[<System.AttributeUsage(System.AttributeTargets.Method, AllowMultiple=true)>]
type ResultTypeAttribute = class
inherit Attribute
Public NotInheritable Class ResultTypeAttribute
Inherits Attribute
This attribute applies to functions returning various result types. It is used to declare the possible result types returned from the function. For inheritance types, only the root type of the inheritance hierarchy needs to be specified.
Constructors Properties TypeGets the valid or expected type mapping for a function having various result types.
TypeIdWhen implemented in a derived class, gets a unique identifier for this Attribute.
(Inherited from Attribute) Methods Explicit Interface Implementations _Attribute.GetIDsOfNames(Guid, IntPtr, UInt32, UInt32, IntPtr)Maps a set of names to a corresponding set of dispatch identifiers.
(Inherited from Attribute) _Attribute.GetTypeInfo(UInt32, UInt32, IntPtr)Retrieves the type information for an object, which can be used to get the type information for an interface.
(Inherited from Attribute) _Attribute.GetTypeInfoCount(UInt32)Retrieves the number of type information interfaces that an object provides (either 0 or 1).
(Inherited from Attribute) _Attribute.Invoke(UInt32, Guid, UInt32, Int16, IntPtr, IntPtr, IntPtr, IntPtr)Provides access to properties and methods exposed by an object.
(Inherited from Attribute)Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide. In this articleWas this page helpful?
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4