FixedLengthString 클래스

정의

주의

Microsoft.VisualBasic.Compatibility.* classes are obsolete and supported within 32 bit processes only. http://go.microsoft.com/fwlink/?linkid=160862

Visual Basic 6.0 고정 길이 문자열의 동작을 에뮬레이션합니다.

public ref class FixedLengthString
public class FixedLengthString
[System.Obsolete("Microsoft.VisualBasic.Compatibility.* classes are obsolete and supported within 32 bit processes only. http://go.microsoft.com/fwlink/?linkid=160862")]
public class FixedLengthString
type FixedLengthString = class
[<System.Obsolete("Microsoft.VisualBasic.Compatibility.* classes are obsolete and supported within 32 bit processes only. http://go.microsoft.com/fwlink/?linkid=160862")>]
type FixedLengthString = class
Public Class FixedLengthString
상속
FixedLengthString
특성

예제

다음 예제에는 선언 및 사용 하는 방법을 보여 줍니다.는 FixedLengthString합니다.

Private Sub DemoFixedLengthString()  
    ' Declare a string that has a length of 7 characters and assign the
    ' initial string. The additional 5 positions will be padded with  
    ' spaces.  
    Dim fixedString As New FixedLengthString(7, "He")  
    ' Display the string in a message box.  
    MsgBox(fixedString.ToString)  
    ' Assign a new value to the string.  
    fixedString.Value = "Hello World"  
    ' Display again. Note that only the first 7 characters are shown.  
    MsgBox(fixedString.ToString)  
End Sub  

설명

Visual Basic 6.0에서을 String 고정된 길이 사용 하 여 선언할 수 없습니다. Visual Basic에서 고정 길이 문자열 되며 더 이상 지원 되는 새로운 String 가 할당 될 때마다의 길이 String 변경 됩니다.

FixedLengthString 클래스는 고정 된 길이로 문자열을 선언할 수 있습니다. Visual Basic 6.0 문자열로의 동작을 에뮬레이트하는 데 사용할 수 있습니다. FixedLengthString 변환할 수 없습니다를 String; 참조 하거나 수행 해야 합니다 Value 속성 또는 호출은 ToString 형식을 변환 하는 방법.

참고

Visual Basic 6.0에서 Visual Basic 2008으로의 업그레이드 도구에서 사용할 수 있도록 Microsoft.VisualBasic.Compatibility.VB6 네임스페이스의 함수 및 개체가 제공됩니다. 이러한 함수와 개체에서 제공하는 대부분의 기능은 .NET Framework의 다른 네임스페이스에서 얻을 수 있는 기능과 동일하므로 이러한 함수와 개체는 Visual Basic 6.0 코드 모델이 .NET Framework 구현과 크게 다른 경우에만 필요합니다.

생성자

FixedLengthString(Int32)
사용되지 않음.

길이를 지정하여 FixedLengthString 클래스의 새 인스턴스를 초기화합니다.

FixedLengthString(Int32, String)
사용되지 않음.

길이 및 초기 값을 사용하여 FixedLengthString 클래스의 새 인스턴스를 초기화합니다.

필드

m_nMaxChars
사용되지 않음.

FixedLengthString의 길이를 저장합니다.

m_strValue
사용되지 않음.

FixedLengthString의 값을 저장합니다.

속성

Value
사용되지 않음.

FixedLengthString의 내용을 가져오거나 설정합니다.

메서드

Equals(Object)
사용되지 않음.

지정된 개체가 현재 개체와 같은지 확인합니다.

(다음에서 상속됨 Object)
GetHashCode()
사용되지 않음.

기본 해시 함수로 작동합니다.

(다음에서 상속됨 Object)
GetType()
사용되지 않음.

현재 인스턴스의 Type을 가져옵니다.

(다음에서 상속됨 Object)
MemberwiseClone()
사용되지 않음.

현재 Object의 단순 복사본을 만듭니다.

(다음에서 상속됨 Object)
ToString()
사용되지 않음.

FixedLengthStringString로 변환합니다.

적용 대상