IVsBuildManagerAccessor2::AcquireBuildResources Method (VSBUILDMANAGERRESOURCE, UInt32)
Visual Studio 2015
Acquires the design-time build resource and/or the UI thread for a build, if they are available.
Assembly: Microsoft.VisualStudio.Shell.Interop.11.0 (in Microsoft.VisualStudio.Shell.Interop.11.0.dll)
int AcquireBuildResources( VSBUILDMANAGERRESOURCE fResources, [OutAttribute] unsigned int% phCookie )
Parameters
- fResources
-
Type:
Microsoft.VisualStudio.Shell.Interop::VSBUILDMANAGERRESOURCE
[in] The type of resource to acquire.
- phCookie
-
Type:
System::UInt32
[out] A cookie that identifies the resource, and can be used to release the resource(s).
Return Value
Type: System::Int32If the method succeeds, it returns S_OK. If it fails, it returns an error code.
This method deprecates BeginDesignTimeBuild and ClaimUIThreadForBuild, and resources acquired using this method can only be released by the ReleaseBuildResources method.
This method returns E_PENDING if all the resources requested are not immediately available. Otherwise the requested resources are claimed and S_OK is returned.
Show: