Skip to content

access

import { access } from "@alloy-js/csharp";
function access(base: Refkeyable | string, options?: AccessExpressionPartProps): AccessExpressionBuilder;
base

Refkeyable | string

optionsoptional

AccessExpressionPartProps

argsoptionalboolean | Children[]

Emit a function call.

attributeoptionalboolean

Wether this part is an attribute reference (used in an attribute context). In that case the “Attribute” suffix is trimmed from the name if present.

childrenoptionalChildren
conditionaloptionalboolean

Whether this part should use conditional access.

idoptionalstring

The identifier to use for this part.

indexoptionalChildren

Create an element access part with a single indexer argument. Mutually exclusive with the indexerArgs prop.

indexerArgsoptionalChildren[]

Create an element access part with multiple indexer arguments. Mutually exclusive with the index prop.

nullableoptionalboolean

Whether 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.

refkeyoptionalRefkeyable

A 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.

symboloptional[unresolved link]

The symbol whose name becomes this part’s identifier.

typeArgsoptionalChildren[]

Type arguments to pass to a member access.

[unresolved link]