ScriptCache.GetScript Method (String, Int32, Int32)
Returns the part of the script that is defined by the start offset and length in the given file.
Namespace: Microsoft.Data.Schema.SchemaModel
Assembly: Microsoft.Data.Schema (in Microsoft.Data.Schema.dll)
Syntax
'Declaration
Public MustOverride Function GetScript ( _
cacheIdentifier As String, _
startOffset As Integer, _
length As Integer _
) As String
public abstract string GetScript(
string cacheIdentifier,
int startOffset,
int length
)
public:
virtual String^ GetScript(
String^ cacheIdentifier,
int startOffset,
int length
) abstract
abstract GetScript :
cacheIdentifier:string *
startOffset:int *
length:int -> string
public abstract function GetScript(
cacheIdentifier : String,
startOffset : int,
length : int
) : String
Parameters
- cacheIdentifier
Type: System.String
A cache identifier.
- startOffset
Type: System.Int32
The starting offset in characters.
- length
Type: System.Int32
The length of the script segment to retrieve.
Return Value
Type: System.String
A string that contains the requested script.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.