The IIsCheckedOutRsp interface is used to interact with specific IsCheckedOut response parameters contained in the in-process COM Server IsCheckedOut response component, which is returned when the IsCheckedOut command is invoked. This interface provides a method for the client to determine if a specified object store item is checked-out by the current user.
Client applications may also interact with the IsCheckedOut response component via the IAppIntRsp interface. For more information about working with command and response components and their COM interfaces, see Command and Response components.
coclass IsCheckedOutRsp {
[default] interface IIsCheckedOutRsp;
interface IAppIntRsp;
};
DLL | FnAppIntIsCheckedOutCmd.dll |
See Also | IIsCheckedOutCmd Interface |
The IIsCheckedOutRsp interface defines one method:
Method | Description |
---|---|
GetIsCheckedOut |
Returns a Boolean indicating whether the object store item specified in the IsCheckedOut command component is checked-out by the current user. |
The following is a fragment from the complete example for the IsCheckedOut command.
...
// Obtain the specific response information contained in the custom IsCheckedOut component
IIsCheckedOutRspPtr spIIsCheckedOutRsp(spIAppIntRsp);
_ASSERTE(spIIsCheckedOutRsp != 0);
// Determine if the object store item is checked out by the current user.
std::cout << "Determining if object store item is checked out by the current user..." << std::endl;
VARIANT_BOOL bIsCheckedOut = spIIsCheckedOutRsp->GetIsCheckedOut();
if (bIsCheckedOut == VARIANT_TRUE) {
std::cout << "Item IS checked-out by the current user." << std::endl;
} else {
std::cout << "Item IS NOT checked-out by the current user." << std::endl;
}
...