本文整理汇总了C#中IIndex.GetHashCode方法的典型用法代码示例。如果您正苦于以下问题:C# IIndex.GetHashCode方法的具体用法?C# IIndex.GetHashCode怎么用?C# IIndex.GetHashCode使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类IIndex
的用法示例。
在下文中一共展示了IIndex.GetHashCode方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: DisplayIndexProperties
public void DisplayIndexProperties(IIndex index, TreeNode indexNode)
{
if (this._currentHashCode == index.GetHashCode()) return;
DataTable dt = new DataTable("MyData");
dt.Columns.Add("Property", stringType);
dt.Columns.Add("Value", stringType);
dt.Rows.Add(new object[] {"Name", index.Name});
dt.Rows.Add(new object[] {"Alias", index.Alias});
dt.Rows.Add(new object[] {"Schema", index.Schema});
dt.Rows.Add(new object[] {"Unique", index.Unique ? "True" : "False"});
dt.Rows.Add(new object[] {"Clustered", index.Clustered ? "True" : "False"});
dt.Rows.Add(new object[] {"Type", index.Type.ToString()});
dt.Rows.Add(new object[] {"FillFactor", index.FillFactor.ToString()});
dt.Rows.Add(new object[] {"InitialSize", index.InitialSize.ToString()});
dt.Rows.Add(new object[] {"SortBookmarks", index.SortBookmarks ? "True" : "False"});
dt.Rows.Add(new object[] {"AutoUpdate", index.AutoUpdate ? "True" : "False"});
dt.Rows.Add(new object[] {"NullCollation", index.NullCollation.ToString()});
dt.Rows.Add(new object[] {"Collation", index.Collation.ToString()});
dt.Rows.Add(new object[] {"Cardinality", index.Cardinality.ToString()});
dt.Rows.Add(new object[] {"Pages", index.Pages.ToString()});
dt.Rows.Add(new object[] {"FilterCondition", index.FilterCondition});
dt.Rows.Add(new object[] {"Integrated", index.Integrated ? "True" : "False"});
this.Grid.DataSource = dt;
this.InitializeGrid();
this.Text = "IIndex Properties";
this.lnkHELP.Text = "IIndex Help ...";
this.helpInterface = "IIndex";
this._currentHashCode = index.GetHashCode();
}
示例2: DisplayIndexProperties
public void DisplayIndexProperties(IIndex index, TreeNode indexNode)
{
if (this._currentHashCode == index.GetHashCode()) return;
propGrid.SelectedObject = index;
this._currentHashCode = index.GetHashCode();
}