共用方式為


BicepFunction.Take(BicepValue<String>, BicepValue<Int32>) Method

Definition

Returns a string with the specified number of characters from the start of the string. This represents the take Bicep function.

public static Azure.Provisioning.BicepValue<string> Take (Azure.Provisioning.BicepValue<string> text, Azure.Provisioning.BicepValue<int> size);
static member Take : Azure.Provisioning.BicepValue<string> * Azure.Provisioning.BicepValue<int> -> Azure.Provisioning.BicepValue<string>
Public Shared Function Take (text As BicepValue(Of String), size As BicepValue(Of Integer)) As BicepValue(Of String)

Parameters

text
BicepValue<String>

The string to take the elements from.

size
BicepValue<Int32>

The number of characters to take. If this value is 0 or less, an empty string is returned. If it's larger than the length of the given string, all the characters in the string are returned.

Returns

A (possibly) shortened string.

Remarks

See the Bicep Functions Reference for more.

Applies to