Mono.Addins.RuntimeAddin.GetFilePath C# (CSharp) Méthode

GetFilePath() public méthode

Gets the path of an add-in file
This method can be used to get the full path of a data file deployed together with the add-in.
public GetFilePath ( ) : string
Résultat string
        public string GetFilePath(params string[] filePath)
        {
            return Path.Combine (baseDirectory, string.Join ("" + Path.DirectorySeparatorChar, filePath));
        }

Same methods

RuntimeAddin::GetFilePath ( string fileName ) : string

Usage Example

		public IAddinLocalizer CreateLocalizer (RuntimeAddin addin, NodeElement element)
		{
			string pkg = element.GetAttribute ("catalog");
			if (pkg.Length == 0)
				pkg = addin.Id;
			string dir = element.GetAttribute ("location");
			if (dir.Length == 0)
				dir = "locale";
			dir = addin.GetFilePath (dir);
			domain = new GettextDomain ();
			domain.Init (pkg, dir);
			return this;
		}
All Usage Examples Of Mono.Addins.RuntimeAddin::GetFilePath