Share via


StringPrototype.anchor(Object, Object) Yöntem

Tanım

Belirtilen nesneyi yer işareti etiketleri içine alınmış metne dönüştürür ve anchor öğesine belirtilen ad özniteliğini verir.

Bu API, ürün altyapısını destekler ve doğrudan kodunuzdan kullanıma yönelik değildir.

public:
 static System::String ^ anchor(System::Object ^ thisob, System::Object ^ anchorName);
[Microsoft.JScript.JSFunction(Microsoft.JScript.JSFunctionAttributeEnum.HasThisObject, Microsoft.JScript.JSBuiltin.String_anchor)]
public static string anchor (object thisob, object anchorName);
[<Microsoft.JScript.JSFunction(Microsoft.JScript.JSFunctionAttributeEnum.HasThisObject, Microsoft.JScript.JSBuiltin.String_anchor)>]
static member anchor : obj * obj -> string
Public Shared Function anchor (thisob As Object, anchorName As Object) As String

Parametreler

thisob
Object

Bu yöntemin işlem yaptığı nesne.

anchorName
Object

Anchor öğesinin ad özniteliği.

Döndürülenler

biçiminde "<A NAME=""+thisobanchorName+"">"++"</A>"bir dize.

Öznitelikler

Şunlara uygulanır

Ayrıca bkz.