Returns a path to the directory with common company application settings for all users of the assembly.
Namespace:
SGP.XUtilityAssembly: SGP.XUtility (in SGP.XUtility.dll)
Version: 1.2.3019.18718
Syntax
Parameters
- assembly
- Type: System.Reflection..::.Assembly
An assembly, which data is used for reading the directory.
Return Value
The path to the directory with the settings for all users for given assembly.
Remarks
Method returns a path to the directory, which serves for saving assembly settings assembly
for all users.
This directory is in the common application data directory (CommonApplicationData),
subdirectory given by company name (assembly producer - GetCompany(Assembly)) and the subdirectory of application name (assembly - GetProduct(Assembly)).
When the directory is not exist, it will be created.
Exceptions
Exception | Condition |
---|---|
System..::.ArgumentNullException | assembly is nullNothingnullptra null reference (Nothing in Visual Basic). |