C# 클래스 CSMongo.MongoOid

Represents an ID number to use for MongoOids
파일 보기 프로젝트 열기: hugoware/CSMongo 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
MongoOidByteLength int

공개 메소드들

메소드 설명
Generate ( ) : byte[]

Generates the bytes for a new MongoOid

GetId ( ) : string

Returns a string version of this ID

MongoOid ( ) : System

Creates a new Oid and generates an Oid automatically

MongoOid ( byte identifier ) : System

Creates an new Oid with the provided bytes - Must be 12 bytes long

MongoOid ( string id ) : System

Creates an ID using a string version of the Oid

SetId ( byte value ) : void

Sets the ID to a specific value using a set of bytes

SetId ( string value ) : void

Converts a string into an ID - IDs should be a hexadecimal string that is either 35 characters (with hyphens) or 24 characters without

ToString ( ) : string

Returns the string format of the Oid

비공개 메소드들

메소드 설명
_GetIdentifier ( ) : int

메소드 상세

Generate() 공개 정적인 메소드

Generates the bytes for a new MongoOid
public static Generate ( ) : byte[]
리턴 byte[]

GetId() 공개 메소드

Returns a string version of this ID
public GetId ( ) : string
리턴 string

MongoOid() 공개 메소드

Creates a new Oid and generates an Oid automatically
public MongoOid ( ) : System
리턴 System

MongoOid() 공개 메소드

Creates an new Oid with the provided bytes - Must be 12 bytes long
public MongoOid ( byte identifier ) : System
identifier byte
리턴 System

MongoOid() 공개 메소드

Creates an ID using a string version of the Oid
public MongoOid ( string id ) : System
id string
리턴 System

SetId() 공개 메소드

Sets the ID to a specific value using a set of bytes
public SetId ( byte value ) : void
value byte
리턴 void

SetId() 공개 메소드

Converts a string into an ID - IDs should be a hexadecimal string that is either 35 characters (with hyphens) or 24 characters without
public SetId ( string value ) : void
value string
리턴 void

ToString() 공개 메소드

Returns the string format of the Oid
public ToString ( ) : string
리턴 string

프로퍼티 상세

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

The number of bytes to expect from a MongoOid
public static int MongoOidByteLength
리턴 int