# IRsSession Interface Reference

Inherits IUnknown.

List of all members.

## Public Member Functions
HRESULT | GetSessionId ([out, retval] RtSessionId *pSessionId)
HRESULT | GetSessionType ([out, retval] RtSessionType *pSessionType)
HRESULT | GetSessionRootNodeList ([out, retval] IRsObjectList **ppRootNodeList)
HRESULT | GetStream ([out, retval] IStream **ppStream)
HRESULT | CreateSession ([in] RtSessionType eSessionType,[in] IRsObjectList *pRootNodeList,[in] IStream *pStream)
HRESULT | CreateCopySession ([in] IRsNode *pRootNode,[in] IStream *pStream)

## Detailed Description

Stream serialization session.

## Member Function Documentation

HRESULT IRsSession::GetSessionId | ( | [out, retval] RtSessionId * | pSessionId | ) |

Return session identification.

Returns:
  pSessionId [out,retval] id of session .

HRESULT IRsSession::GetSessionType | ( | [out, retval] RtSessionType * | pSessionType | ) |

Return type of session.

Returns:
  pSessionType [out,retval] .

HRESULT IRsSession::GetSessionRootNodeList | ( | [out, retval] IRsObjectList ** | ppRootNodeList | ) |

Return list of root nodes for session.

Returns:
  ppRootNode [out,retval] .

HRESULT IRsSession::GetStream | ( | [out, retval] IStream ** | ppStream | ) |

Returns:
  ppStream [out,retval] .

HRESULT IRsSession::CreateSession | ( | [in] RtSessionType | eSessionType,
|  | [in] IRsObjectList * | pRootNodeList,
|  | [in] IStream * | pStream |
| ) |  |  |

Parameters:

  | eSessionType | [in] .
  | pRootNode | [in] .
  | pStream | [in] .

HRESULT IRsSession::CreateCopySession | ( | [in] IRsNode * | pRootNode,
|  | [in] IStream * | pStream |
| ) |  |  |

Parameters:

  | eSessionType | [in] .
  | pRootNode | [in] .
  | pStream | [in] .