Microsoft.VisualStudio.Project.SettingsPage.GetProperty C# (CSharp) Method

GetProperty() public method

public GetProperty ( string propertyName, _PersistStorageType storageType ) : string
propertyName string
storageType _PersistStorageType
return 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;
        }