access
import { access } from "@alloy-js/csharp";
function access(base: Refkeyable | string, options?: AccessExpressionPartProps): AccessExpressionBuilder;Parameters
Section titled “Parameters”| base |
|
| options | optional
|
Options
Section titled “Options”| args | optionalboolean | Children[]Emit a function call. |
| attribute | optionalbooleanWether this part is an attribute reference (used in an attribute context). In that case the “Attribute” suffix is trimmed from the name if present. |
| children | optionalChildren |
| conditional | optionalbooleanWhether this part should use conditional access. |
| id | optionalstringThe identifier to use for this part. |
| index | optionalChildrenCreate an element access part with a single indexer argument. Mutually
exclusive with the |
| indexerArgs | optionalChildren[]Create an element access part with multiple indexer arguments. Mutually
exclusive with the |
| nullable | optionalbooleanWhether this part could possibly be null. Will guard member and element access with a conditional access operator. Passing this is not necessary if you provide a symbol or refkey and the symbol’s nullable flag is set. |
| refkey | optionalRefkeyableA refkey for the symbol whose name becomes this part’s identifier. When a refkey is provided for the first part, it will be fully resolved. Otherwise, just the symbol’s name is used. |
| symbol | optional[unresolved link]The symbol whose name becomes this part’s identifier. |
| typeArgs | optionalChildren[]Type arguments to pass to a member access. |
Returns
Section titled “Returns”[unresolved link]