當前位置: 首頁>>代碼示例>>C#>>正文


C# ProviderRuntime.ThrowFirstErrorOrContinue方法代碼示例

本文整理匯總了C#中Pash.Implementation.ProviderRuntime.ThrowFirstErrorOrContinue方法的典型用法代碼示例。如果您正苦於以下問題:C# ProviderRuntime.ThrowFirstErrorOrContinue方法的具體用法?C# ProviderRuntime.ThrowFirstErrorOrContinue怎麽用?C# ProviderRuntime.ThrowFirstErrorOrContinue使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Pash.Implementation.ProviderRuntime的用法示例。


在下文中一共展示了ProviderRuntime.ThrowFirstErrorOrContinue方法的11個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。

示例1: GetResolvedPSPathFromPSPath

 public Collection<PathInfo> GetResolvedPSPathFromPSPath(string path)
 {
     var runtime = new ProviderRuntime(_sessionState);
     var res = GetResolvedPSPathFromPSPath(new [] { path }, runtime);
     runtime.ThrowFirstErrorOrContinue();
     return res;
 }
開發者ID:mauve,項目名稱:Pash,代碼行數:7,代碼來源:PathIntrinsics.cs

示例2: Exists

 public bool Exists(string path, bool force, bool literalPath)
 {
     var runtime = new ProviderRuntime(SessionState, force, literalPath);
     bool result = Exists(path, runtime);
     runtime.ThrowFirstErrorOrContinue();
     return result;
 }
開發者ID:mauve,項目名稱:Pash,代碼行數:7,代碼來源:ItemCmdletProviderIntrinsics.cs

示例3: HasChild

 public bool HasChild(string path, bool force, bool literalPath)
 {
     var runtime = new ProviderRuntime(SessionState, force, literalPath);
     var res = HasChild(path, runtime);
     runtime.ThrowFirstErrorOrContinue();
     return res;
 }
開發者ID:mauve,項目名稱:Pash,代碼行數:7,代碼來源:ChildItemCmdletProviderIntrinsics.cs

示例4: IsContainer

 public bool IsContainer(string path)
 {
     var runtime = new ProviderRuntime(SessionState);
     bool result = IsContainer(path, runtime);
     runtime.ThrowFirstErrorOrContinue();
     return result;
 }
開發者ID:mauve,項目名稱:Pash,代碼行數:7,代碼來源:ItemCmdletProviderIntrinsics.cs

示例5: Invoke

 public void Invoke(string[] path, bool literalPath)
 {
     var runtime = new ProviderRuntime(SessionState);
     runtime.AvoidGlobbing = literalPath;
     Invoke(path, runtime);
     runtime.ThrowFirstErrorOrContinue();
 }
開發者ID:mauve,項目名稱:Pash,代碼行數:7,代碼來源:ItemCmdletProviderIntrinsics.cs

示例6: Remove

 public void Remove(string[] path, bool recurse, bool force, bool literalPath)
 {
     var runtime = new ProviderRuntime(SessionState, force, literalPath);
     Remove(path, recurse, runtime);
     runtime.ThrowFirstErrorOrContinue();
 }
開發者ID:mauve,項目名稱:Pash,代碼行數:6,代碼來源:ItemCmdletProviderIntrinsics.cs

示例7: New

 public Collection<PSObject> New(string[] paths, string name, string itemTypeName, object content, bool force)
 {
     // TODO: support globbing (e.g. * in filename)
     Path normalizedPath;
     var runtime = new ProviderRuntime(_cmdlet.ExecutionContext);
     runtime.Force = force;
     foreach (var path in paths)
     {
         var provider = GetContainerProviderByPath(path, name, out normalizedPath);
         provider.NewItem(normalizedPath, itemTypeName, content, runtime);
     }
     runtime.ThrowFirstErrorOrContinue();
     return runtime.RetreiveAllProviderData();
 }
開發者ID:Ventero,項目名稱:Pash,代碼行數:14,代碼來源:ItemCmdletProviderIntrinsics.cs

示例8: SetLocation

 public PathInfo SetLocation(string path)
 {
     var runtime = new ProviderRuntime(_sessionState);
     var res = SetLocation(path, runtime);
     runtime.ThrowFirstErrorOrContinue();
     return res;
 }
開發者ID:mauve,項目名稱:Pash,代碼行數:7,代碼來源:PathIntrinsics.cs

示例9: ParseParent

 public string ParseParent(string path, string root)
 {
     var runtime = new ProviderRuntime(_sessionState);
     var res = ParseParent(path, root, runtime);
     runtime.ThrowFirstErrorOrContinue();
     return res;
 }
開發者ID:mauve,項目名稱:Pash,代碼行數:7,代碼來源:PathIntrinsics.cs

示例10: ParseChildName

 public string ParseChildName(string path)
 {
     var runtime = new ProviderRuntime(_sessionState);
     var res = ParseChildName(path, runtime);
     runtime.ThrowFirstErrorOrContinue();
     return res;
 }
開發者ID:mauve,項目名稱:Pash,代碼行數:7,代碼來源:PathIntrinsics.cs

示例11: NormalizeRelativePath

 public string NormalizeRelativePath(string path, string basePath)
 {
     var runtime = new ProviderRuntime(_sessionState);
     var res = NormalizeRelativePath(path, basePath, runtime);
     runtime.ThrowFirstErrorOrContinue();
     return res;
 }
開發者ID:mauve,項目名稱:Pash,代碼行數:7,代碼來源:PathIntrinsics.cs


注:本文中的Pash.Implementation.ProviderRuntime.ThrowFirstErrorOrContinue方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。