다음을 통해 공유


'<methodname1>' 메서드에 부분 메서드(Partial Method) '<methodname2>'과(와) 같은 제네릭 제약 조건이 없습니다.

업데이트: 2007년 11월

Method '<methodname1>' does not have the same generic constraints as the partial method '<methodname2>'

부분 메서드 선언의 제약 조건과 다른 제네릭 제약 조건이 있는 부분 메서드 구현을 정의했습니다. 다음 코드에서는 이 오류를 보여 줍니다.

Partial Class Class1

    Partial Private Sub Test(Of T As Class)(ByVal arg As T)
    End Sub

End Class

Partial Class Class1

    '' The error occurs here, for Test.
    'Private Sub Test(Of T As Structure)(ByVal arg As T)
    'End Sub

End Class

오류 ID: BC31438

참고 항목

개념

부분 메서드

Visual Basic의 제네릭 프로시저

참조

Partial(Visual Basic)