C# 클래스 PhotoSharingApp.AppService.Shared.Models.DocumentDB.AnnotationDocument

The annotation json document.
상속: BaseDocument
파일 보기 프로젝트 열기: Microsoft/Appsample-Photosharing 1 사용 예제들

Private Properties

프로퍼티 타입 설명

공개 메소드들

메소드 설명
CreateFromContract ( AnnotationContract contract ) : AnnotationDocument

Creates a AnnotationDocument from a AnnotationContract.

ToContract ( UserContract annotationOwner, string photoId, string photoOwnerId ) : AnnotationContract

Creates a AnnotationContract from this document

메소드 상세

CreateFromContract() 공개 정적인 메소드

Creates a AnnotationDocument from a AnnotationContract.
public static CreateFromContract ( AnnotationContract contract ) : AnnotationDocument
contract PhotoSharingApp.Portable.DataContracts.AnnotationContract
리턴 AnnotationDocument

ToContract() 공개 메소드

Creates a AnnotationContract from this document
public ToContract ( UserContract annotationOwner, string photoId, string photoOwnerId ) : AnnotationContract
annotationOwner PhotoSharingApp.Portable.DataContracts.UserContract The author of this annotation.
photoId string The id of the photo this annotation is for.
photoOwnerId string The id of the user that owns the photo this annotation is for.
리턴 PhotoSharingApp.Portable.DataContracts.AnnotationContract