OpenApiDocDescriptor.AddInlineLink method

Adds an inline link to the OpenAPI document.

public void AddInlineLink(string name, OpenApiLink link, 
    OpenApiComponentConflictResolution ifExists = OpenApiComponentConflictResolution.Overwrite)
parameter description
name The name of the inline link.
link The inline link to add.
ifExists Specifies the behavior if a link with the same name already exists.

Exceptions

exception condition
InvalidOperationException Thrown if a link with the same name already exists and ifExists is set to Error.
ArgumentOutOfRangeException Thrown if the ifExists parameter has an invalid value.

See Also