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>import { Method } from "@alloy-js/csharp/stc";
Method({ abstract: boolean, async: boolean, attributes: AttributesProp, doc: Children, expression: boolean, extern: boolean, file: boolean, internal: boolean, name: string | Namekey, override: boolean, parameters: Array<ParameterProps>, private: boolean, protected: boolean, public: boolean, readonly: boolean, refkey: Refkey, returns: Children, sealed: boolean, static: boolean, typeParameters: (TypeParameterProps | string)[], virtual: boolean,}).children(children)| abstract | optionalboolean |
| async | optionalbooleanIf true, the method will be declared as an async method. |
| attributes | optionalAttributesPropDefine attributes to attach |
| children | optionalChildren |
| doc | optionalChildrenDoc comment |
| expression | optionalbooleanUse expression syntax for the method. |
| extern | optionalboolean |
| file | optionalboolean |
| internal | optionalboolean |
| name | string | Namekey |
| override | optionalboolean |
| parameters | optionalArray<ParameterProps>An array of parameter descriptors. |
| private | optionalboolean |
| protected | optionalboolean |
| public | optionalboolean |
| readonly | optionalboolean |
| refkey | optionalRefkey |
| returns | optionalChildren |
| sealed | optionalboolean |
| static | optionalboolean |
| typeParameters | optional(TypeParameterProps | string)[]Type parameters for the method |
| virtual | optionalboolean |