OpenApiExtensibleExtensions.AddExtension<T> Method
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.
Add extension into the Extensions
public static void AddExtension<T> (this T element, string name, Microsoft.OpenApi.Interfaces.IOpenApiExtension any) where T : Microsoft.OpenApi.Interfaces.IOpenApiExtensible;
static member AddExtension : 'T * string * Microsoft.OpenApi.Interfaces.IOpenApiExtension -> unit (requires 'T :> Microsoft.OpenApi.Interfaces.IOpenApiExtensible)
<Extension()>
Public Sub AddExtension(Of T As IOpenApiExtensible) (element As T, name As String, any As IOpenApiExtension)
Type Parameters
Parameters
- element
- T
The extensible Open API element.
- name
- String
The extension name.
The extension value.