C# 클래스 MongoDB.Driver.MongoServerSettings

The settings used to access a MongoDB server.
파일 보기 프로젝트 열기: CloudMetal/mongo-csharp-driver 1 사용 예제들

Private Properties

프로퍼티 타입 설명
MongoServerSettings System

공개 메소드들

메소드 설명
Clone ( ) : MongoServerSettings

Creates a clone of the settings.

Equals ( object obj ) : bool

Compares two MongoServerSettings instances.

Freeze ( ) : MongoServerSettings

Freezes the settings.

FromClientSettings ( MongoClientSettings clientSettings ) : MongoServerSettings

Creates a new MongoServerSettings object from a MongoClientSettings object.

FromConnectionStringBuilder ( MongoConnectionStringBuilder builder ) : MongoServerSettings

Gets a MongoServerSettings object intialized with values from a MongoConnectionStringBuilder.

FromUrl ( MongoDB.Driver.MongoUrl url ) : MongoServerSettings

Gets a MongoServerSettings object intialized with values from a MongoUrl.

FrozenCopy ( ) : MongoServerSettings

Returns a frozen copy of the settings.

GetCredentials ( string databaseName ) : MongoDB.Driver.MongoCredentials

Gets credentials for a particular database.

GetHashCode ( ) : int

Gets the hash code.

MongoServerSettings ( ) : System

Creates a new instance of MongoServerSettings. Usually you would use a connection string instead.

ToString ( ) : string

Returns a string representation of the settings.

비공개 메소드들

메소드 설명
MongoServerSettings ( ConnectionMode connectionMode, System.TimeSpan connectTimeout, MongoCredentialsStore credentialsStore, MongoDB.Driver.MongoCredentials defaultCredentials, GuidRepresentation guidRepresentation, bool ipv6, System.TimeSpan maxConnectionIdleTime, System.TimeSpan maxConnectionLifeTime, int maxConnectionPoolSize, int minConnectionPoolSize, ReadPreference readPreference, string replicaSetName, MongoDB.Driver.SafeMode safeMode, System.TimeSpan secondaryAcceptableLatency, IEnumerable servers, System.TimeSpan socketTimeout, bool useSsl, bool verifySslCertificate, int waitQueueSize, System.TimeSpan waitQueueTimeout ) : System

메소드 상세

Clone() 공개 메소드

Creates a clone of the settings.
public Clone ( ) : MongoServerSettings
리턴 MongoServerSettings

Equals() 공개 메소드

Compares two MongoServerSettings instances.
public Equals ( object obj ) : bool
obj object The other instance.
리턴 bool

Freeze() 공개 메소드

Freezes the settings.
public Freeze ( ) : MongoServerSettings
리턴 MongoServerSettings

FromClientSettings() 공개 정적인 메소드

Creates a new MongoServerSettings object from a MongoClientSettings object.
public static FromClientSettings ( MongoClientSettings clientSettings ) : MongoServerSettings
clientSettings MongoClientSettings The MongoClientSettings.
리턴 MongoServerSettings

FromConnectionStringBuilder() 공개 정적인 메소드

Gets a MongoServerSettings object intialized with values from a MongoConnectionStringBuilder.
public static FromConnectionStringBuilder ( MongoConnectionStringBuilder builder ) : MongoServerSettings
builder MongoConnectionStringBuilder The MongoConnectionStringBuilder.
리턴 MongoServerSettings

FromUrl() 공개 정적인 메소드

Gets a MongoServerSettings object intialized with values from a MongoUrl.
public static FromUrl ( MongoDB.Driver.MongoUrl url ) : MongoServerSettings
url MongoDB.Driver.MongoUrl The MongoUrl.
리턴 MongoServerSettings

FrozenCopy() 공개 메소드

Returns a frozen copy of the settings.
public FrozenCopy ( ) : MongoServerSettings
리턴 MongoServerSettings

GetCredentials() 공개 메소드

Gets credentials for a particular database.
public GetCredentials ( string databaseName ) : MongoDB.Driver.MongoCredentials
databaseName string The database name.
리턴 MongoDB.Driver.MongoCredentials

GetHashCode() 공개 메소드

Gets the hash code.
public GetHashCode ( ) : int
리턴 int

MongoServerSettings() 공개 메소드

Creates a new instance of MongoServerSettings. Usually you would use a connection string instead.
public MongoServerSettings ( ) : System
리턴 System

ToString() 공개 메소드

Returns a string representation of the settings.
public ToString ( ) : string
리턴 string