RVTDocs.com
Namespace: Autodesk.Revit.DB Class: Material

Material.IsNameUnique

Method
Description:
Validates whether the material name is unique in document.
Syntax
public static bool IsNameUnique(
	Document aDocument,
	string name
)
Parameters
Parameter Type Description
aDocument Document The document in which the name is being tested for uniqueness.
name String The name tested for uniqueness.
Return Value
Type Description
Boolean Returns true if the name is unique, and false otherwise.
Exceptions
Exception Condition
ArgumentNullException A non-optional argument was null