'Set' 매개 변수는 포함하는 속성과 형식이 같아야 합니다.
업데이트: 2007년 11월
'Set' parameter must have the same type as the containing property
Set 속성 프로시저에 대한 매개 변수의 형식이 해당 매개 변수가 속한 속성의 형식과 다릅니다.
오류 ID: BC31064
이 오류를 해결하려면
매개 변수의 데이터 형식을 Set으로 변경하여 속성에 대한 데이터 형식과 일치하도록 만듭니다. 예를 들면 다음과 같습니다.
Class Class1 ' Declare a local variable to hold the property value. Private Fval As Integer Property F() As Integer Get Return Fval End Get Set(ByVal Value As Integer) Fval = Value End Set End Property End Class