C# 클래스 CrossPlatformSample.HomePage

Defines the home page of the application.
상속: Xamarin.Forms.ContentPage
파일 보기 프로젝트 열기: cloudant/xamarin-cloudant 1 사용 예제들

Private Properties

프로퍼티 타입 설명
DisplayDocument string
HandleException void
InitializeUserInterface void
OnCreateDB void
OnCreateIndex void
OnDeleteDB void
OnDeleteIndex void
OnListIndexes void
OnQuery void
OnRetrieveDocument void
OnSaveDocument void
OnUpdateDocument void
ValidateDatabaseExists bool

공개 메소드들

메소드 설명
HomePage ( CloudantClient client ) : System

Initializes a new instance of the CrossPlatformSample.HomePage class.

비공개 메소드들

메소드 설명
DisplayDocument ( DocumentRevision rev ) : string

Helper class to convert the document contents to a string.

HandleException ( Exception e, string dialogTitle ) : void

Helper method to display an error message for a given exception.

InitializeUserInterface ( List items ) : void

Helper method to initialize the user interface.

OnCreateDB ( ) : void

Code sample to create a database.

OnCreateIndex ( ) : void

Sample code to create an index in the database.

OnDeleteDB ( ) : void

Sample code to delete a database.

OnDeleteIndex ( ) : void

Sample code to delete an index from the database.

OnListIndexes ( ) : void

Sample code to list all existing indexes in the database.

OnQuery ( ) : void

Sample code to search for a document with a given index.

OnRetrieveDocument ( ) : void

Code sample to retrieve a document from the database.

OnSaveDocument ( ) : void

Code sample to save a document in the database.

OnUpdateDocument ( ) : void
ValidateDatabaseExists ( ) : bool

Helper method to validate if a the database already exist.

메소드 상세

HomePage() 공개 메소드

Initializes a new instance of the CrossPlatformSample.HomePage class.
public HomePage ( CloudantClient client ) : System
client IBM.Cloudant.Client.CloudantClient Valid CloudantClient object initialized with the account information.
리턴 System