This method sets the streaming status of a feature layer. Use GetStreamStatus to get the current stream status of a layer. If the result is SLS_NOT_STREAMED_LAYER recreate the layer as a streaming layer to control its streaming status.
HRESULT SetStreamStatus(
[in] StreamLayerStatus StreamStatus)
Parameters:
StreamStatus – An enum which determines the streaming status. The StreamLayerStatus enum can use any of the following values:
SLS_STREAMING = 1
Sets the layer streaming status to streaming.
SLS_STREAM_PAUSED = 2
Sets the layer streaming status to paused streaming.
Return Values:
The return value obtained from the returned HRESULT can be one of the following:
Return value |
Meaning |
S_OK |
Success. |
E_FAIL |
Catastrophic failure. |