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

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

공개 프로퍼티들

프로퍼티 타입 설명
DocumentTypeIdentifier string

Private Properties

프로퍼티 타입 설명

공개 메소드들

메소드 설명
CreateFromContract ( PhotoContract contract ) : PhotoDocument

Creates a PhotoDocument from a PhotoContract.

ToContract ( ICollection userDocumentsForPhotosAndAnnotations ) : PhotoContract

Creates a PhotoContract from this document.

메소드 상세

CreateFromContract() 공개 정적인 메소드

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

ToContract() 공개 메소드

Creates a PhotoContract from this document.
public ToContract ( ICollection userDocumentsForPhotosAndAnnotations ) : PhotoContract
userDocumentsForPhotosAndAnnotations ICollection /// A collection of all the user documents needed for /// the PhotoContract.User and AnnotationContract.From fields. ///
리턴 PhotoSharingApp.Portable.DataContracts.PhotoContract

프로퍼티 상세

DocumentTypeIdentifier 공개적으로 정적으로 프로퍼티

The document type string value for the photo json document.
public static string DocumentTypeIdentifier
리턴 string