次の方法で共有


LogRegistration Constructors

Definition

Overloads

LogRegistration(LogId)

Initializes a new instance of the LogRegistration class. This overload is for a failed result. Status will be set to Failure.

LogRegistration(RegistrationStatuses, LogId, LoggingLevelSettings, String)

Initializes a new instance of the LogRegistration class. This overload is for a successful result.

LogRegistration(LogId)

Initializes a new instance of the LogRegistration class. This overload is for a failed result. Status will be set to Failure.

public:
 LogRegistration(Microsoft::VisualStudio::RpcContracts::Logging::LogId id);
public LogRegistration (Microsoft.VisualStudio.RpcContracts.Logging.LogId id);
new Microsoft.VisualStudio.RpcContracts.Logging.LogRegistration : Microsoft.VisualStudio.RpcContracts.Logging.LogId -> Microsoft.VisualStudio.RpcContracts.Logging.LogRegistration
Public Sub New (id As LogId)

Parameters

id
LogId

The LogId representing the log that has been registered.

Applies to

LogRegistration(RegistrationStatuses, LogId, LoggingLevelSettings, String)

Initializes a new instance of the LogRegistration class. This overload is for a successful result.

public:
 LogRegistration(Microsoft::VisualStudio::RpcContracts::Logging::RegistrationStatuses status, Microsoft::VisualStudio::RpcContracts::Logging::LogId id, Microsoft::VisualStudio::RpcContracts::Logging::LoggingLevelSettings ^ verbositySettings, System::String ^ logFilePathPrefix);
public LogRegistration (Microsoft.VisualStudio.RpcContracts.Logging.RegistrationStatuses status, Microsoft.VisualStudio.RpcContracts.Logging.LogId id, Microsoft.VisualStudio.RpcContracts.Logging.LoggingLevelSettings verbositySettings, string logFilePathPrefix);
new Microsoft.VisualStudio.RpcContracts.Logging.LogRegistration : Microsoft.VisualStudio.RpcContracts.Logging.RegistrationStatuses * Microsoft.VisualStudio.RpcContracts.Logging.LogId * Microsoft.VisualStudio.RpcContracts.Logging.LoggingLevelSettings * string -> Microsoft.VisualStudio.RpcContracts.Logging.LogRegistration
Public Sub New (status As RegistrationStatuses, id As LogId, verbositySettings As LoggingLevelSettings, logFilePathPrefix As String)

Parameters

status
RegistrationStatuses

The result of the call to RegisterTraceLogAsync(LogId, LoggerOptions, CancellationToken), indicates if a new trace log stream was registered or an existing registration already exists. This parameter must have Success set for this overload.

id
LogId

The LogId representing the log that has been registered.

verbositySettings
LoggingLevelSettings

The requested logging verbosity settings of the registered trace log stream.

logFilePathPrefix
String

The string representing the directory and filename prefix for the log. It is assumed that the client library using this API will prepend a file extension with the '.' to write to disk.

Applies to