익명 형식 멤버 또는 속성 '<propertyname>'이(가) 이미 선언되어 있습니다.
업데이트: 2007년 11월
Anonymous type member or property '<propertyname>' is already declared
익명 형식의 선언에는 속성 이름을 한 번만 지정할 수 있습니다. 예를 들어 다음 선언은 올바르지 않습니다.
'' Not valid, because the Label property is assigned to twice.
' Dim anonType1 = New With {.Label = "Debra Garcia", .Label = .Label & ", President"}
'' Not valid, because the property name inferred for both properties is
'' Name.
' Dim anonType2 = New With {Key product.Name, Key car1.Name}
오류 ID: BC36547
이 오류를 해결하려면
속성 중 하나에 대해 다른 이름을 선택합니다.
' Valid. Dim anonType3 = New With {.Name = "Debra Garcia", .Label = .Name & ", President"}
이름 및 값을 유추하는 변수나 속성 이름에 새 이름을 지정합니다.
' Valid. Dim anonType4 = New With {Key .ProductName = product.Name, Key .CarName = car1.Name}