ProtoRolePlayer.CreateRoleAssignment 메서드
Roleassignment에서 Roleplayer에 대 한 작성 하 고 있는 링크를 만듭니다.IdDictionary reconstituted rolePlayer id 포함 되어 있지 않으면 CanUseExistingRolePlayer 메서드가 true를 반환 하는 경우 원래 Roleplayer이이 ProtoRolePlayer 작성 된를 사용 합니다.
네임스페이스: Microsoft.VisualStudio.Modeling
어셈블리: Microsoft.VisualStudio.Modeling.Sdk.11.0(Microsoft.VisualStudio.Modeling.Sdk.11.0.dll)
구문
‘선언
Public Function CreateRoleAssignment ( _
idDictionary As Dictionary(Of Guid, Guid), _
partition As Partition _
) As RoleAssignment
public RoleAssignment CreateRoleAssignment(
Dictionary<Guid, Guid> idDictionary,
Partition partition
)
매개 변수
- idDictionary
형식: System.Collections.Generic.Dictionary<Guid, Guid>
원본 요소에서 복제 요소에 ID ID
- partition
형식: Microsoft.VisualStudio.Modeling.Partition
(소스 역할 수행자 파티션) 링크 작성 대상이 되는 파티션
반환 값
형식: Microsoft.VisualStudio.Modeling.RoleAssignment
RoleAssignment
.NET Framework 보안
- 직접 실행 호출자의 경우 완전히 신뢰합니다. 이 멤버는 부분적으로 신뢰할 수 있는 코드에서 사용할 수 없습니다. 자세한 내용은 부분 신뢰 코드에서 라이브러리 사용을 참조하십시오.