Microsoft.VisualStudio.Project.SettingsPage.GetProperty C# (CSharp) Méthode

GetProperty() public méthode

public GetProperty ( string propertyName, _PersistStorageType storageType ) : string
propertyName string
storageType _PersistStorageType
Résultat string
        public virtual string GetProperty(string propertyName, _PersistStorageType storageType)
        {
            if(this.ProjectManager != null)
            {
                string property;
                bool found = this.ProjectManager.BuildProject.GlobalProperties.TryGetValue(propertyName, out property);

                if(found)
                {
                    return property;
                }
            }

            return String.Empty;
        }