本文整理汇总了C#中Microsoft.GetProperty方法的典型用法代码示例。如果您正苦于以下问题:C# Microsoft.GetProperty方法的具体用法?C# Microsoft.GetProperty怎么用?C# Microsoft.GetProperty使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Microsoft
的用法示例。
在下文中一共展示了Microsoft.GetProperty方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: NeedSchemaChanges
public bool NeedSchemaChanges(Microsoft.TeamFoundation.Warehouse.WarehouseDataAccessComponent dac)
{
var storedProperty = dac.GetProperty(null, VersionPropertyBagKey);
Version installedVersion;
if (Version.TryParse(storedProperty, out installedVersion))
{
var assemblyVersion = Assembly.GetExecutingAssembly().GetName().Version;
var compare = installedVersion.CompareTo(assemblyVersion);
if (compare > 0) throw new WarehouseException(string.Format("Não é possível atualizar a versão do Adapter. Ultima versão aplicada na base: {0} -> Versão do Assembly: {1}", installedVersion, assemblyVersion));
if (compare == 0) return false;
if (compare < 0) return true;
}
return true;
}
示例2: GetDisableFastUpToDateCheck
private ProjectProperty GetDisableFastUpToDateCheck(Microsoft.Build.Evaluation.Project p)
{
return p.GetProperty(DisableFastUpToDateCheckPropertyName);
}
示例3: GetLinkedProperty
private ProjectProperty GetLinkedProperty(Microsoft.Build.Evaluation.Project p)
{
return p.GetProperty(LinkedPropertyName);
}
示例4: GetProperty
public static String GetProperty(Microsoft.Build.Evaluation.Project project, String name)
{
ProjectProperty property = project.GetProperty(name);
if (property != null)
{
return property.UnevaluatedValue;
}
return String.Empty;
}