获取或设置在搜索中使用的字符串。
命名空间: Microsoft.VisualStudio.Text.Operations
程序集: Microsoft.VisualStudio.Text.Logic(在 Microsoft.VisualStudio.Text.Logic.dll 中)
语法
声明
Public Property SearchString As String
public string SearchString { get; set; }
public:
property String^ SearchString {
String^ get ();
void set (String^ value);
}
member SearchString : string with get, set
function get SearchString () : String
function set SearchString (value : String)
属性值
类型:String
使用的字符串在搜索。
异常
异常 | 条件 |
---|---|
ArgumentNullException | 该值为 nullnull 引用(在 Visual Basic 中为 Nothing)。 |
ArgumentOutOfRangeException | 该值是一个空字符串。 |
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关详细信息,请参阅通过部分受信任的代码使用库。