ASCIIEncoding.IsSingleByte Property
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.
Gets a value indicating whether the current encoding uses single-byte code points.
public:
virtual property bool IsSingleByte { bool get(); };
public override bool IsSingleByte { get; }
[System.Runtime.InteropServices.ComVisible(false)]
public override bool IsSingleByte { get; }
member this.IsSingleByte : bool
[<System.Runtime.InteropServices.ComVisible(false)>]
member this.IsSingleByte : bool
Public Overrides ReadOnly Property IsSingleByte As Boolean
Property Value
This property is always true
.
- Attributes
Remarks
Instead of using the IsSingleByte property to determine the size of a byte array for encoding operations and the size of a character array for decoding operations (for example, so that the size of the byte array is IsSingleByte * the number of characters to be encoded), you should call the GetByteCount or GetMaxByteCount method for encoding operations and the GetCharCount or GetMaxCharCount method for decoding operations. These methods takes the ASCIIEncoding object's replacement fallback strategy into account when calculating the required array size.
Applies to
See also
.NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기