StringSegment Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
StringSegment(String) |
Initializes an instance of the StringSegment struct. |
StringSegment(String, Int32, Int32) |
Initializes an instance of the StringSegment struct. |
StringSegment(String)
- Source:
- StringSegment.cs
- Source:
- StringSegment.cs
- Source:
- StringSegment.cs
- Source:
- StringSegment.cs
Initializes an instance of the StringSegment struct.
public:
StringSegment(System::String ^ buffer);
public StringSegment (string buffer);
public StringSegment (string? buffer);
new Microsoft.Extensions.Primitives.StringSegment : string -> Microsoft.Extensions.Primitives.StringSegment
Public Sub New (buffer As String)
Parameters
- buffer
- String
The original String. The StringSegment includes the whole String.
Applies to
StringSegment(String, Int32, Int32)
- Source:
- StringSegment.cs
- Source:
- StringSegment.cs
- Source:
- StringSegment.cs
- Source:
- StringSegment.cs
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)
Parameters
- offset
- Int32
The offset of the segment within the buffer
.
- length
- Int32
The length of the segment.
Exceptions
buffer
is null
.
offset
or length
is less than zero, or offset
+
length
is greater than the number of characters in buffer
.
Applies to
.NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기