Update the record for a stream in the repository

Namespace: Perforce.P4
Assembly: p4api.net (in p4api.net.dll) Version: 2017.3.160.836 (2017.3.160.0836)

Syntax

C#
public Stream UpdateStream(
	Stream stream
)
Visual Basic
Public Function UpdateStream ( _
	stream As Stream _
) As Stream
Visual C++
public:
Stream^ UpdateStream(
	Stream^ stream
)

Parameters

stream
Type: Perforce.P4..::..Stream
Stream specification for the stream being updated

Return Value

The Stream object if new stream was saved, null if creation failed

Examples

To set the locked option on a stream:
CopyC#
Stream streamToUpdate = rep.GetStream("//Rocket/GUI");
streamToUpdate.Options |= StreamOption.Locked; 
streamToUpdate = rep.UpdateStream(streamToUpdate);

See Also