ReadFrom Method (Func(GraphStore), String, 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 a GraphStore using a delegate and populates it from a file with encoded text.
Namespace: System.Dataflow
Assembly: System.Dataflow (in System.Dataflow.dll)
Syntax
'Declaration
PublicSharedFunctionReadFrom ( _
createDocAsFunc(OfGraphStore), _
filePathAsString, _
encodingAsEncoding _
) AsGraphStore
'Usage
DimcreateDocAsFunc(OfGraphStore)
DimfilePathAsStringDimencodingAsEncodingDimreturnValueAsGraphStorereturnValue = GraphStore.ReadFrom(createDoc, _
filePath, encoding)
publicstaticGraphStoreReadFrom(
Func<GraphStore> createDoc,
stringfilePath,
Encodingencoding
)
public:
staticGraphStore^ ReadFrom(
Func<GraphStore^>^ createDoc,
String^ filePath,
Encoding^ encoding
)
publicstaticfunctionReadFrom(
createDoc : Func<GraphStore>,
filePath : String,
encoding : Encoding
) : GraphStore
Parameters
- createDoc
Type: System. . :: . .Func< (Of < ( <'GraphStore> ) > ) >
The delegate that creates the graph store.
- filePath
Type: System. . :: . .String
The path to the file that contains text.
- encoding
Type: System.Text. . :: . .Encoding
The file text encoding.
Return Value
Type: System.Dataflow. . :: . .GraphStore
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).