Add (CustomProperties Collection)
[!참고]
이 기능은 다음 버전의 Microsoft SQL Server에서 제거됩니다. 새 개발 작업에서는 이 기능을 사용하지 말고, 현재 이 기능을 사용하는 응용 프로그램은 가능한 한 빨리 수정하십시오.
The Add method of a CustomProperties collection creates a new Property object, adds it to the collection, and returns a reference to the object. This method applies only to CustomProperties collections.
구문
Set vRet = object.Add(ByVal Value, [ByVal Name As String], [ByVal DataType As VBA.VbVarType)
주의
vRet
A Variant variable that receives the instance of the new Property object. Instead of a variant, you can use a variable that has been declared as type DSO.Property to match the object being retrieved from the collection.object
An instance of a CustomProperties collection.Value
A Variant that contains the value of the Property object.Name
(Optional) A string that specifies the name of the Property object.DataType
(Optional) The data type of the property. A Microsoft® Visual Basic® data type defined in the VBA.VbVarType enumeration.