IStoreUpdateLoggerWithAmbientContext.SetContext Method

Definition

Sets one or more ambient property values that will be added to all store logging (unless overridden by local parameters) until the returned IDisposable is disposed. These apply only to the current execution context, so other threads or async execution flows running concurrently, even against the same logger instance, will not be affected.

public:
 IDisposable ^ SetContext(... cli::array <Microsoft::VisualStudio::Settings::StoreLogPropertyInstance ^> ^ properties);
public IDisposable SetContext (params Microsoft.VisualStudio.Settings.StoreLogPropertyInstance[] properties);
abstract member SetContext : Microsoft.VisualStudio.Settings.StoreLogPropertyInstance[] -> IDisposable
Public Function SetContext (ParamArray properties As StoreLogPropertyInstance()) As IDisposable

Parameters

Returns

Applies to