StringSegment Construtores
Definição
Sobrecargas
| StringSegment(String) |
Inicializa uma instância do struct StringSegment.Initializes an instance of the StringSegment struct. |
| StringSegment(String, Int32, Int32) |
Inicializa uma instância do struct StringSegment.Initializes an instance of the StringSegment struct. |
StringSegment(String)
Inicializa uma instância do struct StringSegment.Initializes an instance of the StringSegment struct.
public:
StringSegment(System::String ^ buffer);
public StringSegment (string buffer);
new Microsoft.Extensions.Primitives.StringSegment : string -> Microsoft.Extensions.Primitives.StringSegment
Public Sub New (buffer As String)
Parâmetros
- buffer
- String
O String original.The original String. O StringSegment inclui o String inteiro.The StringSegment includes the whole String.
Aplica-se a
StringSegment(String, Int32, Int32)
Inicializa uma instância do struct StringSegment.Initializes an instance of the StringSegment struct.
public:
StringSegment(System::String ^ buffer, int offset, int length);
public StringSegment (string buffer, int offset, int length);
new Microsoft.Extensions.Primitives.StringSegment : string * int * int -> Microsoft.Extensions.Primitives.StringSegment
Public Sub New (buffer As String, offset As Integer, length As Integer)
Parâmetros
- offset
- Int32
O deslocamento do segmento dentro do buffer.The offset of the segment within the buffer.
- length
- Int32
O tamanho de cada segmento.The length of the segment.
Exceções
buffer é null.buffer is null.
offset ou length é menor que zero ou offset +
length é maior que o número de caracteres em buffer.offset or length is less than zero, or offset +
length is greater than the number of characters in buffer.