共用方式為


Remove 方法 (String)

Removes the first element that has the specified name from the collection.

命名空間:  Microsoft.SqlServer.Management.SqlParser.Metadata
組件:  Microsoft.SqlServer.Management.SqlParser (在 Microsoft.SqlServer.Management.SqlParser.dll 中)

語法

'宣告
Function Remove ( _
    name As String _
) As Boolean
'用途
Dim instance As IMutableMetadataCollection
Dim name As String
Dim returnValue As Boolean

returnValue = instance.Remove(name)
bool Remove(
    string name
)
bool Remove(
    String^ name
)
abstract Remove : 
        name:string -> bool 
function Remove(
    name : String
) : boolean

參數

  • name
    型別:System. . :: . .String
    The name of the element to remove. This value cannot be a null reference.

傳回值

型別:System. . :: . .Boolean
true if the element is successfully removed; false if the element was not found or if it was not successfully removed from the collection.