Skip to content

Method

import { Method } from "@alloy-js/csharp";
<Method
abstract
async
attributes={AttributesProp}
doc={Children}
expression
extern
file
internal
name={string | Namekey}
override
parameters={Array<ParameterProps>}
private
protected
public
readonly
refkey={Refkey}
returns={Children}
sealed
static
typeParameters={(TypeParameterProps | string)[]}
virtual
>
{children}
</Method>
abstractoptional boolean
asyncoptional booleanIf true, the method will be declared as an async method.
attributesoptional AttributesPropDefine attributes to attach
childrenoptional Children
docoptional ChildrenDoc comment
expressionoptional booleanUse expression syntax for the method.
externoptional boolean
fileoptional boolean
internaloptional boolean
namestring | Namekey
overrideoptional boolean
parametersoptional Array<ParameterProps>An array of parameter descriptors.
privateoptional boolean
protectedoptional boolean
publicoptional boolean
readonlyoptional boolean
refkeyoptional Refkey
returnsoptional Children
sealedoptional boolean
staticoptional boolean
typeParametersoptional (TypeParameterProps | string)[]Type parameters for the method
virtualoptional boolean