ReadFrom(T) Method (Stream, Encoding)
[This content is no longer valid. For the latest information on "M", "Quadrant", SQL Server Modeling Services, and the Repository, see the Model Citizen blog.]
Creates and populates a GraphStore from an encoded stream.
Namespace: System.Dataflow
Assembly: System.Dataflow (in System.Dataflow.dll)
Syntax
'Declaration
PublicSharedFunctionReadFrom(Of T As {New, GraphStore}) ( _
streamAsStream, _
encodingAsEncoding _
) As T
'Usage
DimstreamAsStreamDimencodingAsEncodingDimreturnValueAs T
returnValue = GraphStore.ReadFrom(stream, _
encoding)
publicstatic T ReadFrom<T>(
Streamstream,
Encodingencoding
)
where T : new(), GraphStore
public:
generic<typename T>
where T : gcnew(), GraphStorestatic T ReadFrom(
Stream^ stream,
Encoding^ encoding
)
JScript does not support generic types or methods.
Type Parameters
- T
The graph store.
Parameters
- stream
Type: System.IO. . :: . .Stream
The stream.
- encoding
Type: System.Text. . :: . .Encoding
The file text encoding.
Return Value
Type: T
The graph store.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see https://msdn.microsoft.com/en-us/library/8skskf63(v=vs.85).