次の方法で共有


ISdpNodeContainer::LockContainer (Compact 2013)

3/26/2014

This method locks or unlocks the container.

Syntax

HRESULT LockContainer(
  UCHAR lock
);

Parameters

  • lock
    [in] Value that is set to TRUE to lock the container, or FALSE to unlock it.

Return Value

Returns S_OK on success; otherwise returns standard HRESULT values as appropriate.

Remarks

The behavior of this method is recursive; the container and the pointers in the container are locked or unlocked by the call. Each call to lock a container must be matched by a call to unlock the container. If a container is locked, calls to the ISdpNodeContainer::SetNode and ISdpNodeContainer::AppendNode methods will fail.

See Also

Reference

ISdpNodeContainer
ISdpNodeContainer::AppendNode
ISdpNodeContainer::SetNode