Class BestPracticeCollection
- Inheritance
-
BestPracticeCollection
- Implements
-
- Inherited Members
-
- Namespace
- TabularEditor.Shared.BPA
- Assembly
- TabularEditor3.Shared.dll
public sealed class BestPracticeCollection : IEnumerable<BestPracticeRule>, IEnumerable
- Extension Methods
-
Constructors
BestPracticeCollection()
public BestPracticeCollection()
Properties
AllowEdit
public bool AllowEdit { get; set; }
Property Value
FilePath
public string FilePath { get; }
Property Value
Internal
public bool Internal { get; set; }
Property Value
this[string]
public BestPracticeRule this[string ruleId] { get; }
Parameters
Type |
Name |
Description |
string |
ruleId |
|
Property Value
Name
public string Name { get; set; }
Property Value
Rules
public List<BestPracticeRule> Rules { get; }
Property Value
Url
public string Url { get; set; }
Property Value
Methods
Add(BestPracticeRule)
public void Add(BestPracticeRule rule)
Parameters
AddFromJsonFile(string)
public void AddFromJsonFile(string filePath)
Parameters
Type |
Name |
Description |
string |
filePath |
|
Contains(string)
public bool Contains(string Id)
Parameters
Type |
Name |
Description |
string |
Id |
|
Returns
GetCollectionFromFile(string, string)
public static BestPracticeCollection GetCollectionFromFile(string basePath, string fileName)
Parameters
Returns
GetCollectionFromJson(string, string)
public static BestPracticeCollection GetCollectionFromJson(string url, string json)
Parameters
Returns
GetCollectionFromUrlAsync(string)
public static Task<BestPracticeCollection> GetCollectionFromUrlAsync(string url)
Parameters
Type |
Name |
Description |
string |
url |
|
Returns
GetCurrentModelCollection(Model)
public static BestPracticeCollection GetCurrentModelCollection(Model model)
Parameters
Type |
Name |
Description |
Model |
model |
|
Returns
GetEnumerator()
public IEnumerator<BestPracticeRule> GetEnumerator()
Returns
GetUrlAsync(string)
public static Task<string> GetUrlAsync(string url)
Parameters
Type |
Name |
Description |
string |
url |
|
Returns
Save(string)
public bool Save(string basePath)
Parameters
Type |
Name |
Description |
string |
basePath |
|
Returns
SerializeToJson()
public string SerializeToJson()
Returns
ToString()
public override string ToString()
Returns