Microsoft.VisualStudio.Project.ConfigProvider.GetCfgProviderProperty C# (CSharp) Method

GetCfgProviderProperty() public method

Returns a specified configuration property.
public GetCfgProviderProperty ( int propid, object &var ) : int
propid int Specifies the property identifier for the property to return. For valid values, see and .
var object The value of the property.
return int
        public virtual int GetCfgProviderProperty(int propid, out object var)
        {
            switch ((__VSCFGPROPID)propid)
            {
            // If true, indicates that AddCfgsOfCfgName can be called on this object.
            case __VSCFGPROPID.VSCFGPROPID_SupportsCfgAdd:
                var = true;
                break;

            // If true, indicates that DeleteCfgsOfCfgName can be called on this object.
            case __VSCFGPROPID.VSCFGPROPID_SupportsCfgDelete:
                var = true;
                break;

            // If true, indicates that RenameCfgsOfCfgName can be called on this object.
            case __VSCFGPROPID.VSCFGPROPID_SupportsCfgRename:
                var = true;
                break;

            // If true, indicates that AddCfgsOfPlatformName can be called on this object.
            case __VSCFGPROPID.VSCFGPROPID_SupportsPlatformAdd:
                var = true;
                break;

            // If true, indicates that DeleteCfgsOfPlatformName can be called on this object.
            case __VSCFGPROPID.VSCFGPROPID_SupportsPlatformDelete:
                var = true;
                break;

            // Establishes the basis for automation extenders to make the configuration automation assignment extensible.
            case __VSCFGPROPID.VSCFGPROPID_IntrinsicExtenderCATID:
                var = null;
                return VSConstants.E_NOTIMPL;

            // Configurations will be hidden when this project is the active selected project in the selection context.
            case (__VSCFGPROPID)__VSCFGPROPID2.VSCFGPROPID_HideConfigurations:
                var = false;
                break;

            default:
                var = null;
                return VSConstants.E_NOTIMPL;
            }

            return VSConstants.S_OK;
        }