本文整理汇总了C#中SPWebApplication.GetResponseUri方法的典型用法代码示例。如果您正苦于以下问题:C# SPWebApplication.GetResponseUri方法的具体用法?C# SPWebApplication.GetResponseUri怎么用?C# SPWebApplication.GetResponseUri使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类SPWebApplication
的用法示例。
在下文中一共展示了SPWebApplication.GetResponseUri方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: IisSettingNode
public IisSettingNode(SPWebApplication app, KeyValuePair<SPUrlZone, SPIisSettings> iisSettings)
{
this.Tag = iisSettings.Value;
this.Name = iisSettings.Key.ToString();
this.Text = iisSettings.Key.ToString();
this.ToolTipText = iisSettings.Key.ToString();
this.BrowserUrl = app.GetResponseUri(iisSettings.Key).ToString();
this.Setup();
}
示例2: GetWebAppUrl
public static string GetWebAppUrl(SPWebApplication webApp)
{
return webApp.GetResponseUri(SPUrlZone.Default).AbsoluteUri;
}
示例3: ActivateDeactivateFeatureAtWebApplication
/// <summary>
/// Activates or deactivates the web application scoped feature.
/// </summary>
/// <param name="application">The application.</param>
/// <param name="featureId">The feature id.</param>
/// <param name="activate">if set to <c>true</c> [activate].</param>
/// <param name="force">if set to <c>true</c> [force].</param>
/// <param name="ignoreNonActive">if set to <c>true</c> [ignore non active].</param>
/// <returns></returns>
public SPFeature ActivateDeactivateFeatureAtWebApplication(SPWebApplication application, Guid featureId, bool activate, bool force, bool ignoreNonActive)
{
return ActivateDeactivateFeature(application.Features, activate, featureId, application.GetResponseUri(SPUrlZone.Default).ToString(), force, ignoreNonActive);
}