本文整理汇总了C#中ITypedGettersV3.GetString方法的典型用法代码示例。如果您正苦于以下问题:C# ITypedGettersV3.GetString方法的具体用法?C# ITypedGettersV3.GetString怎么用?C# ITypedGettersV3.GetString使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ITypedGettersV3
的用法示例。
在下文中一共展示了ITypedGettersV3.GetString方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: GetString_Unchecked
private static String GetString_Unchecked( SmiEventSink_Default sink, ITypedGettersV3 getters, int ordinal ) {
Debug.Assert( !IsDBNull_Unchecked( sink, getters, ordinal ) );
// Note: depending on different getters, the result string maybed truncated, e.g. for
// Inproc process, the getter is InProcRecordBuffer (implemented in SqlAcess), string will be
// truncated to 4000 (if length is more than 4000). If MemoryRecordBuffer getter is used, data
// is not truncated. Please refer VSDD 479655 for more detailed information regarding the string length.
String result = getters.GetString( sink, ordinal );
sink.ProcessMessagesAndThrow();
return result;
}
示例2: GetString_Unchecked
private static string GetString_Unchecked(SmiEventSink_Default sink, ITypedGettersV3 getters, int ordinal)
{
string str = getters.GetString(sink, ordinal);
sink.ProcessMessagesAndThrow();
return str;
}