diff options
Diffstat (limited to 'src/WixToolset.Data.WindowsInstaller/TableDefinitionCollection.cs')
-rw-r--r-- | src/WixToolset.Data.WindowsInstaller/TableDefinitionCollection.cs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/WixToolset.Data.WindowsInstaller/TableDefinitionCollection.cs b/src/WixToolset.Data.WindowsInstaller/TableDefinitionCollection.cs index 553f0eaa..26d56387 100644 --- a/src/WixToolset.Data.WindowsInstaller/TableDefinitionCollection.cs +++ b/src/WixToolset.Data.WindowsInstaller/TableDefinitionCollection.cs | |||
@@ -69,6 +69,17 @@ namespace WixToolset.Data | |||
69 | } | 69 | } |
70 | 70 | ||
71 | /// <summary> | 71 | /// <summary> |
72 | /// Tries to get a table definition by name. | ||
73 | /// </summary> | ||
74 | /// <param name="tableName">Name of table to locate.</param> | ||
75 | /// <param name="table">Table definition if found.</param> | ||
76 | /// <returns>True if table definition was found otherwise false.</returns> | ||
77 | public bool TryGet(string tableName, out TableDefinition table) | ||
78 | { | ||
79 | return this.collection.TryGetValue(tableName, out table); | ||
80 | } | ||
81 | |||
82 | /// <summary> | ||
72 | /// Load a table definition collection from an XmlReader. | 83 | /// Load a table definition collection from an XmlReader. |
73 | /// </summary> | 84 | /// </summary> |
74 | /// <param name="reader">Reader to get data from.</param> | 85 | /// <param name="reader">Reader to get data from.</param> |