IVsBuildManagerAccessor3::AcquireBuildResources Method (VSBUILDMANAGERRESOURCE, UInt32)

 

Acquires the design-time build resource and/or the UI thread for a build, if they are available.

Namespace:   Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop.12.0 (in Microsoft.VisualStudio.Shell.Interop.12.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::Int32

If 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.

Return to top
Show: