IStoreUpdateLoggerWithAmbientContext.SetContext Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
- properties
- StoreLogPropertyInstance[]